optimize windows for size

This commit is contained in:
Green Sky 2024-07-15 12:10:43 +02:00
parent c648958468
commit e83b75cdd8
No known key found for this signature in database

View File

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