Skip to content

Commit 388fc33

Browse files
committed
Tweak test in ExternalProject_Message to avoid warning related to CMP0054
This commit will avoid warning like this one: //-------------------- CMake Warning (dev) at CMake/ctkMacroCheckExternalProjectDependency.cmake:345 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "SB_SECOND_PASS" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/ctkMacroCheckExternalProjectDependency.cmake:596 (ExternalProject_Message) CMakeExternals/Log4Qt.cmake:9 (ExternalProject_Include_Dependencies) CMake/ctkMacroCheckExternalProjectDependency.cmake:568 (include) CMake/ctkMacroCheckExternalProjectDependency.cmake:614 (ExternalProject_Include_Dependencies) CMake/ctkBlockCheckDependencies.cmake:132 (ExternalProject_Include_Dependencies) CMakeLists.txt:970 (include) //--------------------
1 parent 318b969 commit 388fc33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ExternalProjectDependency.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ endfunction()
358358
#
359359
function(ExternalProject_Message proj msg)
360360
set(_display 1)
361-
if("${ARGV2}" MATCHES ".+")
361+
if(NOT "x${ARGV2}" STREQUAL "x")
362362
set(_display ${ARGN})
363363
endif()
364364
if(${_display})

0 commit comments

Comments
 (0)