mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
Merge topic 'cuda_check'
e758331595 cm_cxx_features: Remove CUDA installation warning filtering
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4554
This commit is contained in:
@@ -32,8 +32,6 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user