]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix problem with possible incorrect detection of native products due to overriding... V7_8_0a1
authorvsr <vsr@opencascade.com>
Thu, 14 Jan 2016 13:24:59 +0000 (16:24 +0300)
committervsr <vsr@opencascade.com>
Thu, 14 Jan 2016 13:24:59 +0000 (16:24 +0300)
salome_adm/cmake_files/SalomeMacros.cmake

index 6b43e227759ef3eef39db7ea4ebc9f7c7568242e..1d05bc0b66763c4438b070a963b876f64243a838 100644 (file)
@@ -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: