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

Yegor Yefremov yegor_sub1 at visionsystems.de
Wed Jan 27 05:28:50 EST 2010


Brad King wrote:
> 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.

O.K. after I defined project language and placed set (CMAKE_C_COMPILER arm-linux-gcc) before project(foo C) I could get the proper compiler ABI. Looking forward for this feature to be included.

Yegor


More information about the CMake mailing list