[CMake] Linking problem
Maxime Lecourt
maxime.lecourt at gmail.com
Wed Jul 27 08:20:05 EDT 2011
Hi,
is that a valid CMake instruction ?
target_link_libraries(bt "-Wl,-whole-archive -L../idt/ -latidt
-Wl,-no-whole-archive")
I thought you were supposed to use
set_target_properties(bt PROPERTIES LINK_FLAGS "-Wl,-whole-archive -L../idt/
-latidt -Wl,-no-whole-archive")
Maxime
2011/7/27 Sanatan Rai <sanatan at gmail.com>
> On 27 July 2011 12:37, Rolf Eike Beer <eike at sf-mail.de> wrote:
> >> include_directories(${at_SOURCE_DIR})
> >> add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp)
> >> target_link_libraries(atfwmath)
> >
> > You are telling CMake here that atfwmath should be linked against
> > something. But you don't tell it against what.
>
> There are no other dependencies. Originally, this line was not there.
> I added it to see if it would fix the problem.
>
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110727/bd43042d/attachment.htm>
More information about the CMake
mailing list