From: mpa Date: Wed, 23 Oct 2013 10:15:16 +0000 (+0000) Subject: CMake: doing proper string comparison in IF clause X-Git-Tag: BR_hydro_v_0_3_1~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07481435931adf4b771b6580eb1dbd9a11464f81;p=modules%2Fgeom.git CMake: doing proper string comparison in IF clause --- diff --git a/SalomeGEOMConfig.cmake.in b/SalomeGEOMConfig.cmake.in index d09e54767..b15d96362 100644 --- a/SalomeGEOMConfig.cmake.in +++ b/SalomeGEOMConfig.cmake.in @@ -83,7 +83,7 @@ MATH(EXPR _range "${_list_len}-1") FOREACH(_p RANGE ${_range}) LIST(GET _PREREQ ${_p} _pkg ) LIST(GET _PREREQ_CONFIG_DIR ${_p} _pkg_dir) - IF(_pkg_dir) + IF(NOT _pkg_dir STREQUAL "") MESSAGE(STATUS "===> Reloading targets from ${_pkg} ...") FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE PATHS "${_pkg_dir}"