Commit 74711933 authored by Julien Malik's avatar Julien Malik

COMP: avoid dereferencing variable name when in quoted string (avoids policy CMP0054 warning)

parent 7b926c31
......@@ -5,7 +5,7 @@ endif()
# For now we parse module activation list and test if option is ON. If not the cmake configuration stop.
#TODO We should provide a better mechanism here wich will deactivate only examples required by deactivated options.
foreach (_activationOption ${OTB_MODULE_ACTIVATION_OPTION_LIST})
if(NOT ${_activationOption} AND NOT ${_activationOption} STREQUAL "OTB_USE_MAPNIK")
if(NOT ${_activationOption} AND NOT "x${_activationOption}" STREQUAL "xOTB_USE_MAPNIK")
message(FATAL_ERROR "BUILD_EXAMPLES requires ${_activationOption} to be ON")
endif()
endforeach()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment