optimize windows for size
This commit is contained in:
parent
c648958468
commit
e83b75cdd8
@ -58,6 +58,9 @@ elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
|
||||
endif()
|
||||
|
||||
# remove unreferenced objects, significantly reducing binary and debugsymbol sizes
|
||||
add_link_options("/OPT:REF")
|
||||
endif()
|
||||
|
||||
# cmake setup end
|
||||
|
Loading…
Reference in New Issue
Block a user