Fix CMakeList manage build with Linux

This commit is contained in:
Ricardo Montañana Gómez 2023-09-18 19:27:40 +02:00
parent 847c6761d7
commit 501ea0ab4e
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -8,9 +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}")
if (Linux)
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(manage "${TORCH_LIBRARIES}" OpenXLSX::OpenXLSX stdc++fs)
else (Linux)
else()
target_link_libraries(manage "${TORCH_LIBRARIES}" OpenXLSX::OpenXLSX)
endif (Linux)
endif()
target_link_libraries(list ArffFiles mdlp "${TORCH_LIBRARIES}")