MantisBT - CMake
View Issue Details
0013863CMakeCMakepublic2013-01-21 17:182016-06-10 14:31
Jonathan De Wachter 
Kitware Robot 
highmajoralways
closedmoved 
CMake 2.8.10.2 
 
0013863: CMAKE_FORCE_C_COMPILER doesn't work...
CMAKE_FORCE_C_COMPILER doesn't work while the traditional version CMAKE_C_COMPILER does.

Here is my code:
include(CMakeForceCompiler)

SET(CMAKE_SYSTEM_NAME Android)

set(NDK_PATH "C:/Users/Sonkun/Desktop/my-android-toolchain/arm-linux-androideabi")

# I get my compilers found when using the following. The only problem: it doesn't compile, without extra flags, a simple program so I need to force.
SET(CMAKE_C_COMPILER gcc)
SET(CMAKE_CXX_COMPILER g++)

# So I comment the two line above and try the following. It results two errors saying CMake was unable to find the compilers...
CMAKE_FORCE_C_COMPILER(gcc GNU)
CMAKE_FORCE_CXX_COMPILER(g++ GNU)
No tags attached.
Issue History
2013-01-21 17:18Jonathan De WachterNew Issue
2016-06-10 14:28Kitware RobotNote Added: 0042206
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
(0042206)
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.