Win32/MSVC: garbage-collect symbols even in debug builds.
This shrinks debug build binaries by ~1/3.
This commit is contained in:
parent
d1ddc6ee07
commit
679a1f0ded
@ -224,7 +224,7 @@ target_link_libraries(solvespace
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_target_properties(solvespace PROPERTIES
|
set_target_properties(solvespace PROPERTIES
|
||||||
LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO")
|
LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO /INCREMENTAL:NO /OPT:REF")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# solvespace headless library
|
# solvespace headless library
|
||||||
@ -263,6 +263,11 @@ target_link_libraries(solvespace-cli
|
|||||||
add_dependencies(solvespace-cli
|
add_dependencies(solvespace-cli
|
||||||
resources)
|
resources)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set_target_properties(solvespace-cli PROPERTIES
|
||||||
|
LINK_FLAGS "/INCREMENTAL:NO /OPT:REF")
|
||||||
|
endif()
|
||||||
|
|
||||||
# solvespace unix package
|
# solvespace unix package
|
||||||
|
|
||||||
if(NOT (WIN32 OR APPLE))
|
if(NOT (WIN32 OR APPLE))
|
||||||
|
Loading…
Reference in New Issue
Block a user