From 6d92dcf76b66aa0a7ba9a21c758b03388659fbbd Mon Sep 17 00:00:00 2001 From: "Maintenance team (INV)" Date: Thu, 14 Jan 2016 21:28:38 +0300 Subject: [PATCH] Synchronize adm files --- cmake_files/SalomeMacros.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake_files/SalomeMacros.cmake b/cmake_files/SalomeMacros.cmake index 6b43e2277..1d05bc0b6 100644 --- a/cmake_files/SalomeMacros.cmake +++ b/cmake_files/SalomeMacros.cmake @@ -503,7 +503,9 @@ MACRO(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS pkg referenceVariable upCount) # Override the variable - don't append to it, as it would give precedence # to what was stored there before! - SET(CMAKE_PREFIX_PATH "${${pkg_UC}_ROOT_DIR}") + IF(DEFINED ENV{${pkg_UC}_ROOT_DIR}) + SET(CMAKE_PREFIX_PATH "${${pkg_UC}_ROOT_DIR}") + ENDIF() # Try find_package in config mode. This has the priority, but is # performed QUIET and not REQUIRED: -- 2.39.2