From 02ea4309d7f20e5e12489394bdd59cbefd9fd029 Mon Sep 17 00:00:00 2001 From: salome-admin Date: Tue, 15 Apr 2014 20:36:01 +0400 Subject: [PATCH] Synchronize adm files --- CMakeModules/SalomeMacros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeModules/SalomeMacros.cmake b/CMakeModules/SalomeMacros.cmake index 8c85651..2c89269 100755 --- a/CMakeModules/SalomeMacros.cmake +++ b/CMakeModules/SalomeMacros.cmake @@ -465,8 +465,8 @@ MACRO(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS pkg referenceVariable upCount) ELSE() SET(_var_already_there FALSE) ENDIF() - # Make cache entry - SET(${pkg_UC}_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to ${pkg_UC} directory") + # Make cache entry, giving precedence to the env variable + SET(${pkg_UC}_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to ${pkg_UC} directory" FORCE) ## ## 2. Find package - try CONFIG mode first (i.e. looking for XYZ-config.cmake) -- 2.39.2