From 15e8f0f6db7ee928082ea2716a0258d41864b33a Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 5 Dec 2019 19:01:40 +0300 Subject: [PATCH] Avoid of CMake warning: Policy CMP0012 --- cmake/SalomeMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2