elseif ("x${_arg}" MATCHES "^x(COMMAND|COMMENT|WORKING_DIRECTORY)$")
set(_option "PASS")
list(APPEND _command_args "${_arg}")
- elseif ("${_option}" STREQUAL "DEPENDS")
+ elseif ("x${_option}" STREQUAL "xDEPENDS")
list(APPEND _deps "${_arg}")
# If the dependency is a target created with this command, also add
# the output file as a dependency.
list(APPEND _deps ${_target_output})
endif()
endif()
- elseif ("${_option}" STREQUAL "PASS")
+ elseif ("x${_option}" STREQUAL "xPASS")
list(APPEND _command_args "${_arg}")
- elseif ("${_option}" STREQUAL "DEPENDS_FILE_LIST")
+ elseif ("x${_option}" STREQUAL "xDEPENDS_FILE_LIST")
list(APPEND _deps ${${_arg}})
- elseif ("${_option}" STREQUAL "OUTPUT")
+ elseif ("x${_option}" STREQUAL "xOUTPUT")
if (_output)
message(FATAL_ERROR "Multiple OUTPUTs not supported")
endif()
- if ("${_arg}" STREQUAL "STAMP")
+ if ("x${_arg}" STREQUAL "xSTAMP")
gmx_get_stamp_filename(_output ${targetname})
set(_stamp ON)
else()
set(${NAME}_AUTO OFF)
set(${NAME}_FORCE OFF)
string(TOUPPER "${${NAME}}" ${NAME})
- if ("${NAME}" STREQUAL "AUTO")
+ if ("${${NAME}}" STREQUAL "AUTO")
set(${NAME}_AUTO ON)
elseif (${NAME})
set(${NAME}_FORCE ON)
function(GMX_CHECK_IF_CHANGED RESULT)
set(_result FALSE)
foreach (_var ${ARGN})
- if (NOT "${_var}" STREQUAL "${_var}_PREVIOUS_VALUE")
+ if (NOT "${${_var}}" STREQUAL "${${_var}_PREVIOUS_VALUE}")
set(_result TRUE)
endif()
set(${_var}_PREVIOUS_VALUE "${${_var}}" CACHE INTERNAL