Don't pass the full library path with -l
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 13 May 2011 13:23:11 +0000 (15:23 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 13 May 2011 13:23:11 +0000 (15:23 +0200)
CMakeLists.txt

index bcf303e..54c08c0 100644 (file)
@@ -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}