Skip to content

Commit

Permalink
MSVC: build with /MT instead of /MD for faster builds
Browse files Browse the repository at this point in the history
  • Loading branch information
breznak committed Sep 26, 2019
1 parent 7166ffd commit 8ec3db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonCompilerConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ if(MSVC)
# Release Only: /O2 /Oi /Gy /MD
# Debug Only: /Od /Zi /sdl /RTC1 /MDd
set(INTERNAL_CXX_FLAGS /permissive- /W3 /Gm- /EHsc /FC /nologo /Zc:__cplusplus
$<$<CONFIG:Release>:/O2 /Oi /Gy /GL /MD>
$<$<CONFIG:Debug>:/Ob0 /Od /Zi /sdl /RTC1 /MDd>)
$<$<CONFIG:Release>:/O3 /Oi /Gy /GL /MT>
$<$<CONFIG:Debug>:/Ob0 /Od /Zi /sdl /RTC1 /MTd>)
#linker flags
if("${BITNESS}" STREQUAL "32")
set(machine "-MACHINE:X86")
Expand Down

0 comments on commit 8ec3db0

Please sign in to comment.