Skip to content

Commit

Permalink
optimize windows for size
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Jul 15, 2024
1 parent c648958 commit e83b75c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e83b75c

Please sign in to comment.