From: vsr Date: Thu, 5 Dec 2019 16:01:40 +0000 (+0300) Subject: Avoid of CMake warning: Policy CMP0012 X-Git-Tag: EMC2P_V_1_2_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15e8f0f6db7ee928082ea2716a0258d41864b33a;p=tools%2Fconfiguration.git Avoid of CMake warning: Policy CMP0012 --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index 79c77e0..64c10ad 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -578,7 +578,7 @@ MACRO(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS pkg referenceVariable upCount) IF(DEFINED ${pkg_UC}_UPCOUNT) SET(_upCount ${${pkg_UC}_UPCOUNT}) ENDIF() - IF(${_upCount}) + IF(${_upCount} GREATER 0) FOREACH(_unused RANGE 1 ${_upCount}) GET_FILENAME_COMPONENT(_tmp_ROOT_DIR "${_tmp_ROOT_DIR}" PATH) ENDFOREACH()