Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Native/CMakeLists.txt')
-rw-r--r--src/Native/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt
index 94e2d7bd4..83ccad224 100644
--- a/src/Native/CMakeLists.txt
+++ b/src/Native/CMakeLists.txt
@@ -179,8 +179,9 @@ endfunction(convert_to_absolute_path)
if(WIN32)
add_definitions(-DUNICODE=1)
add_compile_options($<$<CONFIG:Debug>:-DDEBUG>)
+ add_compile_options($<$<CONFIG:Debug>:/MTd>)
+ add_compile_options($<$<CONFIG:Release>:/MT>)
add_compile_options(/Zi) # enable debugging information
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /PDBCOMPRESS") #shrink pdb size
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG")
else(WIN32)
string(TOUPPER ${CMAKE_BUILD_TYPE} UPPERCASE_CMAKE_BUILD_TYPE)