[CMake] Wrong CMAKE_SYSTEM_NAME handling

Marco Milanese marcomilanese7 at gmail.com
Sat Jan 3 16:50:38 EST 2015


Hi,

I'm trying to setup a cross compile CMakeLists.txt. My target is a embedded
ARM core.
This is my CMakeLists.txt <https://gist.github.com/a1849d9b5ff02606e860>  .

The linker script seems wrong:
mm7 at pc5:~/test/cmake/build$ cat CMakeFiles/target.dir/link.txt
arm-none-eabi-g++       CMakeFiles/target.dir/test.cpp.o  -o target
-rdynamic 

I can't understand why is "-rdynamic" appended. It should be appended only
if "CMAKE_SYSTEM_NAME"=Linux
(https://github.com/Kitware/CMake/blob/4811915367cc23e68e2171b83509b8a382ff1941/Modules/Platform/Linux-GNU.cmake#L24).

Is this a CMake bug or am I making some mistakes? Thank you

Marco



--
View this message in context: http://cmake.3232098.n2.nabble.com/Wrong-CMAKE-SYSTEM-NAME-handling-tp7589372.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list