summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA/run_nvcc.cmake
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2014-09-17 11:54:29 (GMT)
committerBrad King <brad.king@kitware.com>2014-09-24 14:10:42 (GMT)
commit84e3fde94db9dfa2f3fb10a85c5db6c9a78124ab (patch)
tree07208d6b3698645556376aaad0862bc8ec6237da /Modules/FindCUDA/run_nvcc.cmake
parent17a457dcb02e351efe5d1dd093c9443ba206667a (diff)
downloadCMake-84e3fde94db9dfa2f3fb10a85c5db6c9a78124ab.zip
CMake-84e3fde94db9dfa2f3fb10a85c5db6c9a78124ab.tar.gz
CMake-84e3fde94db9dfa2f3fb10a85c5db6c9a78124ab.tar.bz2
FindCUDA: Avoid if() auto-dereference in string comparisons
This silences possible CMP0054 warnings.
Diffstat (limited to 'Modules/FindCUDA/run_nvcc.cmake')
-rw-r--r--Modules/FindCUDA/run_nvcc.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA/run_nvcc.cmake b/Modules/FindCUDA/run_nvcc.cmake
index 58e0d31..abdd307 100644
--- a/Modules/FindCUDA/run_nvcc.cmake
+++ b/Modules/FindCUDA/run_nvcc.cmake
@@ -126,7 +126,7 @@ endif()
# and other return variables are present after executing the process.
macro(cuda_execute_process status command)
set(_command ${command})
- if(NOT _command STREQUAL "COMMAND")
+ if(NOT "x${_command}" STREQUAL "xCOMMAND")
message(FATAL_ERROR "Malformed call to cuda_execute_process. Missing COMMAND as second argument. (command = ${command})")
endif()
if(verbose)