summaryrefslogtreecommitdiff
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorDavid Hirvonen <dhirvonen@elucideye.com>2018-01-02 15:10:57 -0500
committerDavid Hirvonen <dhirvonen@elucideye.com>2018-01-06 17:00:09 -0500
commitff41a4b817749be1e51ebb6ab15bab6f0e488139 (patch)
tree70282fa84d872ded531c76733a19e256c0591931 /Modules/FindCUDA.cmake
parent011f2de484c0be3a4c21cca5982c0b7452a32e30 (diff)
downloadcmake-ff41a4b817749be1e51ebb6ab15bab6f0e488139.tar.gz
FindCUDA: de-duplicates C++11 flag when propagating host flags.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 04b5cf9fc0..30c14164ba 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -1438,7 +1438,7 @@ macro(CUDA_WRAP_SRCS cuda_target format generated_files)
if( "${_cuda_host_flags}" MATCHES "-std=c\\+\\+11")
# Add the c++11 flag to nvcc if it isn't already present. Note that we only look at
# the main flag instead of the configuration specific flags.
- if( NOT "${CUDA_NVCC_FLAGS}" MATCHES "-std;c\\+\\+11" )
+ if( NOT "${CUDA_NVCC_FLAGS}" MATCHES "-std=c\\+\\+11" )
list(APPEND nvcc_flags --std c++11)
endif()
string(REGEX REPLACE "[-]+std=c\\+\\+11" "" _cuda_host_flags "${_cuda_host_flags}")