From: vsr Date: Tue, 19 Jan 2016 14:46:24 +0000 (+0300) Subject: Fix error preventing normal configuration with direct specifying of product directory... X-Git-Tag: V8_0_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6309be814dcee6ff640a6e90f37846af0f802423;p=modules%2Fkernel.git Fix error preventing normal configuration with direct specifying of product directory via cmake option. --- diff --git a/salome_adm/cmake_files/SalomeMacros.cmake b/salome_adm/cmake_files/SalomeMacros.cmake index 445e75ba0..34f85786d 100644 --- a/salome_adm/cmake_files/SalomeMacros.cmake +++ b/salome_adm/cmake_files/SalomeMacros.cmake @@ -507,7 +507,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{${_envvar}}) + IF(DEFINED ${_envvar}) SET(CMAKE_PREFIX_PATH "${${_envvar}}") ENDIF()