Win32/MSVC: garbage-collect symbols even in debug builds.

This shrinks debug build binaries by ~1/3.
pull/135/head
whitequark 2016-12-04 20:34:54 +00:00
parent d1ddc6ee07
commit 679a1f0ded
1 changed files with 6 additions and 1 deletions

View File

@ -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))