From: vsr Date: Mon, 25 Jan 2016 10:47:58 +0000 (+0300) Subject: Fix error preventing normal configuration with direct specifying of product directory... X-Git-Tag: V8_0_0rc1~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b867d436500af603c7004d721247e833bb1ae439;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 1d05bc0b6..25a22bdf7 100644 --- a/salome_adm/cmake_files/SalomeMacros.cmake +++ b/salome_adm/cmake_files/SalomeMacros.cmake @@ -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()