From a4401cb78fb20acc5d1ac7301ae8a38e8dcdf22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana?= Date: Fri, 29 Sep 2023 00:30:47 +0200 Subject: [PATCH] Linux CMakeLists.txt adjustment --- CMakeLists.txt | 2 +- src/Platform/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb77a77..c18c9ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ option(CODE_COVERAGE "Collect coverage from test library" OFF) set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) -find_package(Boost 1.78.0 REQUIRED) +find_package(Boost 1.66.0 REQUIRED) if(Boost_FOUND) message("Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}") include_directories(${Boost_INCLUDE_DIRS}) diff --git a/src/Platform/CMakeLists.txt b/src/Platform/CMakeLists.txt index f3c4de6..dcf5de7 100644 --- a/src/Platform/CMakeLists.txt +++ b/src/Platform/CMakeLists.txt @@ -12,7 +12,7 @@ add_executable(best best.cc BestResults.cc Result.cc Statistics.cc BestResultsEx target_link_libraries(main BayesNet ArffFiles mdlp "${TORCH_LIBRARIES}") if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux") target_link_libraries(manage "${TORCH_LIBRARIES}" libxlsxwriter.so ArffFiles mdlp stdc++fs) - target_link_libraries(best Boost::boost "${XLSXWRITER_LIB}" stdc++fs) + target_link_libraries(best Boost::boost libxlsxwriter.so stdc++fs) else() target_link_libraries(manage "${TORCH_LIBRARIES}" "${XLSXWRITER_LIB}" ArffFiles mdlp) target_link_libraries(best Boost::boost "${XLSXWRITER_LIB}")