]> SALOME platform Git repositories - tools/documentation.git/commitdiff
Salome HOME
Synchronize adm files
authorMaintenance team (INV) <mnt@opencascade.com>
Thu, 14 Jan 2016 18:28:53 +0000 (21:28 +0300)
committerMaintenance team (INV) <mnt@opencascade.com>
Thu, 14 Jan 2016 18:28:53 +0000 (21:28 +0300)
CMakeModules/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: