Skip to content

Commit

Permalink
/MT to embed the MSVC runtime DLLs
Browse files Browse the repository at this point in the history
  • Loading branch information
erbth committed Jan 3, 2020
1 parent 2e83f0d commit 8c52de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
set(CMAKE_CXX_FLAGS_DEBUG "-gdwarf-2")
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
set(CMAKE_CXX_FLAGS "/EHsc")
set(CMAKE_CXX_FLAGS_DEBUG "/Od /Zi")
set(CMAKE_CXX_FLAGS_DEBUG "/MT /Od /Zi")
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
else ()
MESSAGE(WARNING "C++ Compiler ${CMAKE_CXX_COMPILER_ID} is not supported, compiler flags are not set")
endif ()
Expand Down

0 comments on commit 8c52de5

Please sign in to comment.