[CMake] Add -lrt at the end of link.txt
Cedric Doucet
cedric.doucet at inria.fr
Tue Jan 7 06:56:59 EST 2014
He llo,
I would like to know how to add "-lrt" at the end of link.txt.
I tried to do that by modifying CMakeLists.txt.
I added the following lines:
----------------------------------------------------------------------------------------------------------------
list(APPEND CMAKE_CXX_FLAGS "-lrt")
list(REMOVE_DUPLICATES CMAKE_CXX_FLAGS)
string(REPLACE ";" " " CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
----------------------------------------------------------------------------------------------------------------
However, it does not work.
Anybody have an idea?
Thank you!
Cédric Doucet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140107/4f39349e/attachment.htm>
More information about the CMake
mailing list