Linux CMakeLists.txt adjustment

This commit is contained in:
Ricardo Montañana Gómez 2023-09-29 00:30:47 +02:00
parent 9d3d9cc6c6
commit a4401cb78f
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE
2 changed files with 2 additions and 2 deletions

View File

@ -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})

View File

@ -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}")