Add CMake option to use /MD runtime (#7277)
This commit is contained in:
committed by
GitHub
parent
b2d8431aea
commit
2a0368b7ca
@@ -15,7 +15,7 @@ endfunction(auto_source_group)
|
||||
|
||||
# Force static runtime for MSVC
|
||||
function(msvc_use_static_runtime)
|
||||
if(MSVC)
|
||||
if(MSVC AND (NOT BUILD_SHARED_LIBS) AND (NOT FORCE_SHARED_CRT))
|
||||
set(variables
|
||||
CMAKE_C_FLAGS_DEBUG
|
||||
CMAKE_C_FLAGS_MINSIZEREL
|
||||
|
||||
Reference in New Issue
Block a user