diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a04f5c30a50c7e9accaf2f5cd9123f58261ef7e..dc6a33c3b40b9b55f28d13c46bf1f4b0cd1b5c8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required (VERSION 3.9) +if (WIN32) + cmake_minimum_required (VERSION 3.13) +endif() #Only set project name if CoMISo is built as stand-alone library if("${PROJECT_NAME}" STREQUAL "") @@ -417,6 +420,10 @@ message("COMISO_LINK_DIRECTORIES: ${COMISO_LINK_DIRECTORIES}") if (COMISO_LINK_DIRECTORIES) set_target_properties(CoMISo PROPERTIES LINK_DIRECTORIES ${COMISO_LINK_DIRECTORIES}) endif() +if (WIN32) +#TODO: do this also for non windows platforms as soon as we can require cmake 3.13 + target_link_directories(CoMISo PUBLIC ${COMISO_LINK_DIRECTORIES}) +endif() # generate dllexport macros on windows if (WIN32)