From: mnt Date: Thu, 26 May 2016 18:11:28 +0000 (+0300) Subject: Synchronize adm files X-Git-Tag: V8_1_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0169f0cb641ae2452314e1020a3e8a42a202d837;p=tools%2Fmedcoupling.git Synchronize adm files --- 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()