MantisBT - CMake
View Issue Details
0014096CMakeCMakepublic2013-04-17 12:382016-06-10 14:31
Chris Sulmone 
Kitware Robot 
normalminoralways
closedmoved 
WindowsWindows 7
 
 
0014096: Ninja Generator Fails to Produce Valid File When Cross Compiling
I am using the latest version of CMake (compiled from source) on windows.

When generating a ninja build configuration w/ cross-compiling using https://raw.github.com/taka-no-me/android-cmake/master/android.toolchain.cmake [^] on andriod, paths with backslashes ('\') are produced instead of forward slashes ('/'). This leads to the android toolchain failing to link files.

I looked through the source and it looks like there is specific handling for MinGW ninja makefiles on windows to account for backslashes. Maybe a more generalized approach would work to fix this for cross-compilation as well.
1) Generate a ninja build file using https://raw.github.com/taka-no-me/android-cmake/master/android.toolchain.cmake [^]
2) Run ninja
3) Explosions at link stage
No tags attached.
Issue History
2013-04-17 12:38Chris SulmoneNew Issue
2016-06-10 14:28Kitware RobotNote Added: 0042268
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042268)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.