[CMake] 2.8/3.0: CMAKE_FORCE_C_COMPILER semantics
Tim Blechmann
tim at klingt.org
Sun Apr 13 05:05:44 EDT 2014
hi all,
i'm trying to use the iOS.cmake toolchain file from [1]. it works fine
with cmake-2.8.12.2, but fails with cmake-3.0 (today's master), which
gives me:
------>8-------
CMake Error at CMakeLists.txt:16 (project):
The CMAKE_C_COMPILER:
gcc
is not a full path and was not found in the PATH.
CMake Error at CMakeLists.txt:16 (project):
The CMAKE_CXX_COMPILER:
g++
is not a full path and was not found in the PATH.
------>8-------
the toolchain file uses the CMAKE_FORCE_C_COMPILER macro to set the
compiler:
------>8-------
include (CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER (gcc gcc)
CMAKE_FORCE_CXX_COMPILER (g++ g++)
------>8-------
* is this a problem with cmake or with the toolchain file?
* any suggestion for a workaround?
thanks a lot,
tim
[1] https://code.google.com/p/ios-cmake/source/browse/toolchain/iOS.cmake
More information about the CMake
mailing list