From 0169f0cb641ae2452314e1020a3e8a42a202d837 Mon Sep 17 00:00:00 2001 From: mnt Date: Thu, 26 May 2016 21:11:28 +0300 Subject: [PATCH] Synchronize adm files --- cmake_files/SalomeMacros.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmake_files/SalomeMacros.cmake b/cmake_files/SalomeMacros.cmake index f78ffe4ac..258173142 100644 --- a/cmake_files/SalomeMacros.cmake +++ b/cmake_files/SalomeMacros.cmake @@ -563,8 +563,13 @@ MACRO(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS pkg referenceVariable upCount) # Note the double de-reference of "referenceVariable": SET(_tmp_ROOT_DIR "${${referenceVariable}}") ENDIF() - IF(${upCount}) - FOREACH(_unused RANGE 1 ${upCount}) + # Up cound can be reset by detection procedure + SET(_upCount ${upCount}) + IF(DEFINED ${pkg_UC}_UPCOUNT) + SET(_upCount ${${pkg_UC}_UPCOUNT}) + ENDIF() + IF(${_upCount}) + FOREACH(_unused RANGE 1 ${_upCount}) GET_FILENAME_COMPONENT(_tmp_ROOT_DIR "${_tmp_ROOT_DIR}" PATH) ENDFOREACH() ENDIF() -- 2.39.2