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()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# remove unreferenced objects, significantly reducing binary and debugsymbol sizes
|
||||||
|
add_link_options("/OPT:REF")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# cmake setup end
|
# cmake setup end
|
||||||
|
Loading…
Reference in New Issue
Block a user