]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Avoid of CMake warning: Policy CMP0012
authorvsr <vsr@opencascade.com>
Thu, 5 Dec 2019 16:01:40 +0000 (19:01 +0300)
committervsr <vsr@opencascade.com>
Fri, 6 Dec 2019 13:28:20 +0000 (16:28 +0300)
cmake/SalomeMacros.cmake

index 79c77e06442e7aa080990769324f34d1a7be1921..64c10addb359b3e7a2f34a575f7bbe700faa32e4 100644 (file)
@@ -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()