]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Fix error preventing normal configuration with direct specifying of product directory...
authorvsr <vsr@opencascade.com>
Mon, 25 Jan 2016 10:47:58 +0000 (13:47 +0300)
committervsr <vsr@opencascade.com>
Mon, 25 Jan 2016 10:47:58 +0000 (13:47 +0300)
salome_adm/cmake_files/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()