Suppress warning from cmake about policy changes. I'm uncertain

whether the OLD behavior or the NEW behavior was intended.  Either
should be sufficient to suppress the warning, and OLD appears to work.

See: "cmake --help-policy CMP0054" in a more current cmake for a more
detailed explanation of the change.
This commit is contained in:
cfcohen 2015-12-04 20:44:12 -05:00
parent ea2ac753b0
commit 20a0adb665

View File

@ -88,6 +88,7 @@ endif()
# and other return variables are present after executing the process.
macro(cuda_execute_process status command)
set(_command ${command})
cmake_policy(SET CMP0054 OLD)
if(NOT _command STREQUAL "COMMAND")
message(FATAL_ERROR "Malformed call to cuda_execute_process. Missing COMMAND as second argument. (command = ${command})")
endif()