summaryrefslogtreecommitdiffstats
path: root/Tests/MSVCRuntimeLibrary
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-13 20:16:26 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-19 15:40:40 (GMT)
commit67de5b7b82c6f61c5d349c70de81dde58bb79dd1 (patch)
treeaa04c9e284375dfd760a08fac13ba5018bdfcf97 /Tests/MSVCRuntimeLibrary
parent0ae372daee75e6d5305ec9f934c2adce3074ca5d (diff)
downloadCMake-67de5b7b82c6f61c5d349c70de81dde58bb79dd1.zip
CMake-67de5b7b82c6f61c5d349c70de81dde58bb79dd1.tar.gz
CMake-67de5b7b82c6f61c5d349c70de81dde58bb79dd1.tar.bz2
VS: Suppress MSBuild default settings affected by UseDebugLibraries
`Microsoft.Cl.Common.props` changes some default settings based on `UseDebugLibraries`. CMake models its own controls for these settings, so if the project does not set them, explicitly suppress them to avoid letting `UseDebugLibraries` affect them.
Diffstat (limited to 'Tests/MSVCRuntimeLibrary')
-rw-r--r--Tests/MSVCRuntimeLibrary/CMakeLists.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/Tests/MSVCRuntimeLibrary/CMakeLists.txt b/Tests/MSVCRuntimeLibrary/CMakeLists.txt
index f7d9fec..f1ed9b4 100644
--- a/Tests/MSVCRuntimeLibrary/CMakeLists.txt
+++ b/Tests/MSVCRuntimeLibrary/CMakeLists.txt
@@ -57,10 +57,6 @@ function(verify lang src)
# VS 2005 and above default to multi-threaded.
target_compile_definitions(empty-${lang} PRIVATE VERIFY_MT)
endif()
- if(CMAKE_GENERATOR MATCHES "Visual Studio ([^9]|9[0-9])")
- # VS 2010 and above have a different default runtime library for projects than 'cl'.
- target_compile_definitions(empty-${lang} PRIVATE VERIFY_DLL)
- endif()
endif()
endfunction()