summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-13 13:39:20 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-03-13 13:39:28 (GMT)
commit7d43bcb4db2b26d9f9f8d828198252a44b5560a0 (patch)
tree5a80e647a6cc5d59ebe3b34623d7b9c9b5dc6fed /Modules
parent072372aeb80a5de15a4a9c4ecb3bc0981da0bf11 (diff)
parent7a7793e6d7a230b3c208319dce337c6eec54897a (diff)
downloadCMake-7d43bcb4db2b26d9f9f8d828198252a44b5560a0.zip
CMake-7d43bcb4db2b26d9f9f8d828198252a44b5560a0.tar.gz
CMake-7d43bcb4db2b26d9f9f8d828198252a44b5560a0.tar.bz2
Merge topic 'vs-BuildInParallel'
7a7793e6d7 FindCUDA: Disallow with CMP0147 under Visual Studio d6353e74b4 VS: Add policy to build custom commands concurrently Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8314
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDA.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index c2ec82e..f65bb73 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -565,6 +565,13 @@ if(_FindCUDA_CMP0146 STREQUAL "NEW")
message(FATAL_ERROR "The FindCUDA module has been removed by policy CMP0146.")
endif()
+if(CMAKE_GENERATOR MATCHES "Visual Studio")
+ cmake_policy(GET CMP0147 _FindCUDA_CMP0147)
+ if(_FindCUDA_CMP0147 STREQUAL "NEW")
+ message(FATAL_ERROR "The FindCUDA module does not work in Visual Studio with policy CMP0147.")
+ endif()
+endif()
+
if(_FindCUDA_testing)
set(_FindCUDA_included TRUE)
return()