[CMake] Linking problem

Sanatan Rai sanatan at gmail.com
Wed Jul 27 08:22:27 EDT 2011


On 27 July 2011 13:20, Maxime Lecourt <maxime.lecourt at 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


More information about the CMake mailing list