From fa9d540df344b7f265eb98eaca9b57468480fd6e Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 13 May 2011 15:23:11 +0200 Subject: [PATCH] Don't pass the full library path with -l --- CMakeLists.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcf303e..54c08c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,7 +135,7 @@ set(includedir ${CMAKE_INSTALL_PREFIX}/include) set(libdir ${CMAKE_INSTALL_PREFIX}/lib) # construct ${BOOST_LDADD} from ${Boost_LIBRARIES} -string(REGEX REPLACE ";" " -l" BOOST_LDADD "${Boost_IOSTREAMS_LIBRARIES}") +string(REGEX REPLACE ";" " " BOOST_LDADD "${Boost_IOSTREAMS_LIBRARIES}") set(BOOST_LDADD "-l${BOOST_LDADD}") # construct ${BOOST_CFLAGS} from ${Boost_INCLUDE_DIRS} -- 1.7.1