Browse Source

use specific targets when selecting link libraries for boost

merge-requests/395/head
Jørgen Lien Sellæg 7 years ago committed by Jørgen Lien Sellæg
parent
commit
0735598be3
  1. 2
      CMakeLists.txt
  2. 3
      src/CMakeLists.txt

2
CMakeLists.txt

@ -47,7 +47,7 @@ add_subdirectory(lib/libclangmm)
add_subdirectory(lib/tiny-process-library) add_subdirectory(lib/tiny-process-library)
set(BUILD_TESTING ${BUILD_TESTING_SAVED} CACHE BOOL "Set to previous value" FORCE) set(BUILD_TESTING ${BUILD_TESTING_SAVED} CACHE BOOL "Set to previous value" FORCE)
find_package(Boost 1.54 COMPONENTS system filesystem serialization REQUIRED) find_package(Boost 1.54 COMPONENTS REQUIRED filesystem serialization)
find_package(ASPELL REQUIRED) find_package(ASPELL REQUIRED)
include(FindPkgConfig) include(FindPkgConfig)
pkg_check_modules(GTKMM gtkmm-3.0 REQUIRED) pkg_check_modules(GTKMM gtkmm-3.0 REQUIRED)

3
src/CMakeLists.txt

@ -30,10 +30,11 @@ add_library(juci_shared STATIC ${JUCI_SHARED_FILES})
target_link_libraries(juci_shared target_link_libraries(juci_shared
${GTKMM_LIBRARIES} ${GTKMM_LIBRARIES}
${GTKSVMM_LIBRARIES} ${GTKSVMM_LIBRARIES}
${Boost_LIBRARIES}
${LIBLLDB_LIBRARIES} ${LIBLLDB_LIBRARIES}
${ASPELL_LIBRARIES} ${ASPELL_LIBRARIES}
${LIBGIT2_LIBRARIES} ${LIBGIT2_LIBRARIES}
Boost::filesystem
Boost::serialization
clangmm clangmm
tiny-process-library tiny-process-library
) )

Loading…
Cancel
Save