diff options
author | dan sinclair <dj2@everburning.com> | 2018-11-21 18:24:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 18:24:07 -0500 |
commit | f2691ed3dd68cd1c8239fb3b378bbf4037fc94d7 (patch) | |
tree | 8b206077927734af91035a8f938886ab6e33568e /CMakeLists.txt | |
parent | 966f714f69becddc3612912ec9b375ed3aaa8e17 (diff) | |
download | amber-f2691ed3dd68cd1c8239fb3b378bbf4037fc94d7.tar.gz |
Match RelWithDebInfo for MSVC builds (#85)
Update build scripts to set the correct flags for the RelWithDebInfo build.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ca16372..b7c9155 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,8 +87,13 @@ elseif(MSVC) # /MT* options. For debug builds use /MTd, and for release builds use /MT. if(CMAKE_BUILD_TYPE MATCHES "Debug") set(CUSTOM_CXX_FLAGS ${CUSTOM_CXX_FLAGS} /MTd) + message(STATUS "Setting /MTd") + elseif(CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo") + set(CUSTOM_CXX_FLAGS ${CUSTOM_CXX_FLAGS} /MT) + message(STATUS "Setting /MT") else() set(CUSTOM_CXX_FLAGS ${CUSTOM_CXX_FLAGS} /MT) + message(STATUS "Setting /MT") endif() set(CUSTOM_CXX_FLAGS |