summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-10 12:22:07 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-10 12:22:58 (GMT)
commit058972b16f96654a28d36469c21512bdd633f7be (patch)
treead3d8200ecf4ef92ff075ba521ae9e63d9719035 /Source
parent6a7c614a7ee319157d1d0aa482af92599b90d4a2 (diff)
parent6ebc6cec41c16a94fd233e2b7317293e3fce7a64 (diff)
downloadCMake-058972b16f96654a28d36469c21512bdd633f7be.zip
CMake-058972b16f96654a28d36469c21512bdd633f7be.tar.gz
CMake-058972b16f96654a28d36469c21512bdd633f7be.tar.bz2
Merge topic 'cuda_warning'
6ebc6cec41 cm_cxx_features: Filter out CUDA installation warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4437
Diffstat (limited to 'Source')
-rw-r--r--Source/Checks/cm_cxx_features.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index 3b00dfb..c16286c 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -32,6 +32,8 @@ function(cm_check_cxx_feature name)
string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}")
# Filter out ld warnings.
string(REGEX REPLACE "[^\n]*ld: warning: [^\n]*" "" check_output "${check_output}")
+ # Filter out CUDA installation warnings.
+ string(REGEX REPLACE "[^\n]*clang: warning: Unknown CUDA version[^\n]*" "" check_output "${check_output}")
# If using the feature causes warnings, treat it as broken/unavailable.
if(check_output MATCHES "(^|[ :])[Ww][Aa][Rr][Nn][Ii][Nn][Gg]")
set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE)