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

Yegor Yefremov yegor_sub1 at visionsystems.de
Tue Jan 26 12:02:00 EST 2010


Brad King wrote:
> Yegor Yefremov wrote:
>> Alexander Neundorf wrote:
>>> You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to 
>>> either "ELF ARM" or "ELF ARMEABI".
>> Do I see it right, that this variable is relevant when building CMake itself?
> 
> No, it is set in each project that gets built.  The reason it looks like it's
> in a source file is because that source gets compiled for the target environment
> by CMake when it configures a project.

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.

That is everything I could find in CMakeCache.txt referencing ABI:

//Result of TRY_COMPILE
CMAKE_DETERMINE_CXX_ABI_COMPILED:INTERNAL=TRUE
//Result of TRY_COMPILE
CMAKE_DETERMINE_C_ABI_COMPILED:INTERNAL=TRUE 

That's why I was thinking CMAKE_C_COMPILER_ABI is for building CMake itself relevant.

Yegor


More information about the CMake mailing list