[CMake] How to determine a ABI version of the arm-linux-gcc?

Brad King brad.king at kitware.com
Tue Jan 26 12:22:14 EST 2010


Yegor Yefremov wrote:
> O.K. Here are some lines of my CMakeLists.txt:
> 
> set (CMAKE_C_COMPILER arm-linux-gcc)
> set (CMAKE_STRIP arm-linux-strip) 
> message (STATUS "ABI ${CMAKE_C_COMPILER_ABI}") 
> 
> After running cmake I see only ABI as output and CMakeCache.txt doesn't contain CMAKE_C_COMPILER_ABI variable at all.

It's in CMakeFiles/CMake*Compiler.cmake.  It works only after the
language is enabled by the project() or enable_language() command.
The compiler must be set before one of these commands runs.

-Brad


More information about the CMake mailing list