summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-10 17:35:45 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-12 11:52:15 (GMT)
commit7a7793e6d7a230b3c208319dce337c6eec54897a (patch)
tree4cf534118e8c9bee47c4d031a619844f3f2124bc /Tests/RunCMake/find_package/RunCMakeTest.cmake
parentd6353e74b4dc53b98943d5d66ab5ffb0bef04d08 (diff)
downloadCMake-7a7793e6d7a230b3c208319dce337c6eec54897a.zip
CMake-7a7793e6d7a230b3c208319dce337c6eec54897a.tar.gz
CMake-7a7793e6d7a230b3c208319dce337c6eec54897a.tar.bz2
FindCUDA: Disallow with CMP0147 under Visual Studio
FindCUDA's custom commands invoke `nvcc`, which invokes `cl`. Under VS this is done without a `/FS` flag, so `.pdb` generation races if we use `BuildInParallel`. The FindCUDA module has already been removed by policy CMP0146 after being deprecated since CMake 3.10, so it is simplest to just disallow this combination of features. Issue: #24576
Diffstat (limited to 'Tests/RunCMake/find_package/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/find_package/RunCMakeTest.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_package/RunCMakeTest.cmake b/Tests/RunCMake/find_package/RunCMakeTest.cmake
index 924aa66..26eb908 100644
--- a/Tests/RunCMake/find_package/RunCMakeTest.cmake
+++ b/Tests/RunCMake/find_package/RunCMakeTest.cmake
@@ -42,6 +42,11 @@ run_cmake(CMP0145-NEW)
run_cmake(CMP0146-OLD)
run_cmake(CMP0146-WARN)
run_cmake(CMP0146-NEW)
+if(RunCMake_GENERATOR MATCHES "Visual Studio")
+ run_cmake(CMP0147-OLD)
+ run_cmake(CMP0147-WARN)
+ run_cmake(CMP0147-NEW)
+endif()
run_cmake(WrongVersionRange)
run_cmake(EmptyVersionRange)
run_cmake(VersionRangeWithEXACT)