diff --git a/src/Learning/MODL_Coclustering/CMakeLists.txt b/src/Learning/MODL_Coclustering/CMakeLists.txt index 97cb92dd5..e76a560dc 100644 --- a/src/Learning/MODL_Coclustering/CMakeLists.txt +++ b/src/Learning/MODL_Coclustering/CMakeLists.txt @@ -1,15 +1,13 @@ file(GLOB cppfiles ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) -# on fedora, binaries built with mpi must ended by _mpich suffix +# Add MODL_Coclustering executable +# +# On Fedora: binaries built with MPI must suffixed by _mpich (stored in ${MPI_SUFFIX}) add_executable(MODL_Coclustering${MPI_SUFFIX} ${cppfiles} MODL_Coclustering.rc) -set_khiops_options(MODL_Coclustering${MPI_SUFFIX}) - target_link_libraries(MODL_Coclustering${MPI_SUFFIX} PUBLIC KMDRRuleLibrary KWLearningProblem) +set_khiops_options(MODL_Coclustering${MPI_SUFFIX}) -if(MSVC) - target_link_options(MODL_Coclustering${MPI_SUFFIX} PUBLIC "/INCREMENTAL") -endif() - +# Add MODL_Coclustering_SO shared library add_library(MODL_Coclustering_SO SHARED ${cppfiles}) target_link_libraries(MODL_Coclustering_SO PUBLIC KMDRRuleLibrary KWLearningProblem) set_target_properties(