From 847c6761d7a6d1851a1fbb1e9bfa363d250c66e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Sun, 17 Sep 2023 10:42:19 +0200 Subject: [PATCH] Add Linux specific link library to cmake --- src/Platform/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Platform/CMakeLists.txt b/src/Platform/CMakeLists.txt index d55e9d8..be86377 100644 --- a/src/Platform/CMakeLists.txt +++ b/src/Platform/CMakeLists.txt @@ -8,5 +8,9 @@ add_executable(main main.cc Folding.cc platformUtils.cc Experiment.cc Datasets.c add_executable(manage manage.cc Results.cc ReportConsole.cc ReportExcel.cc ReportBase.cc) add_executable(list list.cc platformUtils Datasets.cc) target_link_libraries(main BayesNet ArffFiles mdlp "${TORCH_LIBRARIES}") -target_link_libraries(manage "${TORCH_LIBRARIES}" OpenXLSX::OpenXLSX stdc++fs) +if (Linux) + target_link_libraries(manage "${TORCH_LIBRARIES}" OpenXLSX::OpenXLSX stdc++fs) +else (Linux) + target_link_libraries(manage "${TORCH_LIBRARIES}" OpenXLSX::OpenXLSX) +endif (Linux) target_link_libraries(list ArffFiles mdlp "${TORCH_LIBRARIES}") \ No newline at end of file