From 793da4c3b4411da4e60556c2fa7cf778aff64b1c Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 19 Jan 2016 17:46:24 +0300 Subject: [PATCH] Fix error preventing normal configuration with direct specifying of product directory via cmake option. --- salome_adm/cmake_files/SalomeMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2