Fix pkgconfig library dependency on boost iostreams library (newer binutils needs -l)
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Jun 2013 13:34:01 +0000 (15:34 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Jun 2013 13:34:01 +0000 (15:34 +0200)
CMakeLists.txt

index 37811d6..d591511 100644 (file)
@@ -145,7 +145,7 @@ set(libdir      ${CMAKE_INSTALL_PREFIX}/lib)
 
 # construct ${BOOST_LDADD} from ${Boost_LIBRARIES}
 string(REGEX REPLACE ";" " " BOOST_LDADD "${Boost_IOSTREAMS_LIBRARIES}")
-set(BOOST_LDADD "${BOOST_LDADD}")
+set(BOOST_LDADD "-l${BOOST_LDADD}")
 
 # construct ${BOOST_CFLAGS} from ${Boost_INCLUDE_DIRS}
 string(REGEX REPLACE ";" " -I" BOOST_CFLAGS "${Boost_INCLUDE_DIRS}")