Salome HOME
Synchronize adm files
authorMaintenance team (INV) <mnt@opencascade.com>
Mon, 25 Jan 2016 18:33:30 +0000 (21:33 +0300)
committerMaintenance team (INV) <mnt@opencascade.com>
Mon, 25 Jan 2016 18:33:30 +0000 (21:33 +0300)
CMakeModules/SalomeMacros.cmake

index 1d05bc0b66763c4438b070a963b876f64243a838..25a22bdf70988080f3b5b93572d375bdedb1826f 100644 (file)
@@ -503,7 +503,7 @@ 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!  
-  IF(DEFINED ENV{${pkg_UC}_ROOT_DIR})
+  IF(DEFINED ${pkg_UC}_ROOT_DIR)
     SET(CMAKE_PREFIX_PATH "${${pkg_UC}_ROOT_DIR}")
   ENDIF()