On 27 July 2011 13:20, Maxime Lecourt <maxime.leco...@gmail.com> wrote: > Hi, > > is that a valid CMake instruction ? > target_link_libraries(bt "-Wl,-whole-archive -L../idt/ -latidt > -Wl,-no-whole-archive")
Yes, it certainly works. > I thought you were supposed to use > set_target_properties(bt PROPERTIES LINK_FLAGS "-Wl,-whole-archive -L../idt/ > -latidt -Wl,-no-whole-archive") Thanks for the pointer. -- Sanatan Rai _______________________________________________ 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