From 0735598be36314df13420edc47f108e61fc1c690 Mon Sep 17 00:00:00 2001 From: zalox Date: Thu, 16 May 2019 14:50:51 +0200 Subject: [PATCH] use specific targets when selecting link libraries for boost --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 843df3b..f2a276f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ add_subdirectory(lib/libclangmm) add_subdirectory(lib/tiny-process-library) 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) include(FindPkgConfig) pkg_check_modules(GTKMM gtkmm-3.0 REQUIRED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f2c9a1b..3259246 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,10 +30,11 @@ add_library(juci_shared STATIC ${JUCI_SHARED_FILES}) target_link_libraries(juci_shared ${GTKMM_LIBRARIES} ${GTKSVMM_LIBRARIES} - ${Boost_LIBRARIES} ${LIBLLDB_LIBRARIES} ${ASPELL_LIBRARIES} ${LIBGIT2_LIBRARIES} + Boost::filesystem + Boost::serialization clangmm tiny-process-library )