diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index de95913a..a1ef0819 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -224,7 +224,7 @@ target_link_libraries(solvespace if(MSVC) set_target_properties(solvespace PROPERTIES - LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO") + LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO /INCREMENTAL:NO /OPT:REF") endif() # solvespace headless library @@ -263,6 +263,11 @@ target_link_libraries(solvespace-cli add_dependencies(solvespace-cli resources) +if(MSVC) + set_target_properties(solvespace-cli PROPERTIES + LINK_FLAGS "/INCREMENTAL:NO /OPT:REF") +endif() + # solvespace unix package if(NOT (WIN32 OR APPLE))