Skip to content
Permalink
Browse files

expand Boost_LIBRARIES for pkg-config libs (#1801)

  • Loading branch information...
jrmarkle authored and JohnLangford committed Mar 22, 2019
1 parent 5a8c495 commit edfc0ba8e0c792c65e7732a8cbe03b0de4e7d501
Showing with 5 additions and 1 deletion.
  1. +4 −0 CMakeLists.txt
  2. +1 −1 libvw.pc.in
@@ -150,6 +150,10 @@ endif()

# PkgConfig
if(VW_INSTALL)
FOREACH(BOOST_LIBRARY ${Boost_LIBRARIES})
SET (BOOST_LINK_LIBRARIES "${BOOST_LINK_LIBRARIES} ${BOOST_LIBRARY}")
ENDFOREACH()

configure_file(libvw.pc.in libvw.pc)
configure_file(libvw_c_wrapper.pc.in libvw_c_wrapper.pc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libvw.pc ${CMAKE_CURRENT_BINARY_DIR}/libvw_c_wrapper.pc DESTINATION lib/pkgconfig)
@@ -8,5 +8,5 @@ Description: Vowpal Wabbit Machine Learning System
URL: @PACKAGE_URL@
Version: @PACKAGE_VERSION@
Requires: zlib
Libs: -L@CMAKE_INSTALL_PREFIX@/lib -lvw -lallreduce @CMAKE_THREAD_LIBS_INIT@ @Boost_LIBRARIES@
Libs: -L@CMAKE_INSTALL_PREFIX@/lib -lvw -lallreduce @CMAKE_THREAD_LIBS_INIT@ @BOOST_LINK_LIBRARIES@
Cflags: -I@CMAKE_INSTALL_PREFIX@/include/vowpalwabbit

0 comments on commit edfc0ba

Please sign in to comment.
You can’t perform that action at this time.