Am Montag 18 April 2011, 15:25:24 schrieb Łukasz Tasz: > Hi all, > > I got a simple question, > > What is idea behind target property LINK_FLAGS? > > When I add linker flag e.g --no-undefined then cmake is not alligning > it to real linker that will be used during linking. > > for example --no-undefined is a valid ld switch, but when I specify it > LINK_FLAGS it will not reach linker since cmake is deciding to use g++ > and is forgeting about adding -Wl, at the begining.
However, there are flags for the linking stage of the compiler that do not directly translate to -Wl,--somthing but e.g. instruct gcc what libraries to use (or not) for linking. Just look at "Options for Linking" in "man gcc". HS _______________________________________________ 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
