Skip to content

Commit

Permalink
Build all release configurations with /MT
Browse files Browse the repository at this point in the history
  • Loading branch information
craflin committed Jun 30, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e038e54 commit 71701f0
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
@@ -15,6 +15,9 @@ set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER ".cmake")

if(MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_RELEASE} /MT /Os /Oy /O1 /GF /GL")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "/OPT:REF /OPT:ICF /INCREMENTAL:NO")
endif()

add_subdirectory(Ext)

0 comments on commit 71701f0

Please sign in to comment.