Skip to content

Commit

Permalink
fix: MSVC runtime library got overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
codedwrench committed Jan 12, 2024
1 parent b6ef60a commit 4789749
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/addcompilerandlinkerflags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_CXX_FLAGS_RELEASE "/O2 /MT")
set(CMAKE_CXX_FLAGS_DEBUG "/Od /MTd /ZI")
set(PROJECT_COMPILE_WARNING_FLAGS /Wall /sdl /WX)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
else()
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
Expand Down

0 comments on commit 4789749

Please sign in to comment.