Fix CMakeLists libxlsxwriter for Linux

This commit is contained in:
Ricardo Montañana Gómez 2023-09-20 19:02:53 +02:00
parent 94ae9456a0
commit 67252fc41d
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -10,7 +10,7 @@ add_executable(manage manage.cc Results.cc ReportConsole.cc ReportExcel.cc Repor
add_executable(list list.cc platformUtils Datasets.cc)
target_link_libraries(main BayesNet ArffFiles mdlp "${TORCH_LIBRARIES}")
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(manage "${TORCH_LIBRARIES}" "${XLSXWRITER_LIB}" ArffFiles mdlp stdc++fs)
target_link_libraries(manage "${TORCH_LIBRARIES}" libxlsxwriter.so ArffFiles mdlp stdc++fs)
else()
target_link_libraries(manage "${TORCH_LIBRARIES}" "${XLSXWRITER_LIB}" ArffFiles mdlp)
endif()