Matthias Noll wrote:
Hi all,
I have a problem while adding something to the linker command line with
cmake. I'm trying to use the set command like this
SET(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS}
/NODEFAULTLIB:atlthunk )
After generation the value /NODEFAULTLIB:atlthunk is included in the
command line but there is also a
";" between the old values and my new one. But the ";" results in a
error. How can I prevent the ";" to appear.
You need to quote it:
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
/NODEFAULTLIB:atlthunk" )
CMake uses ; as a list separator so set(a b c) ends up as a;b;c, but
set("a b c") is "a b c". (http://www.cmake.org/cmake/help/syntax.html)
-Bill
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake