From: mpa Date: Wed, 23 Oct 2013 10:16:03 +0000 (+0000) Subject: CMake: doing proper string comparison in IF clause X-Git-Tag: V7_3_0a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca8af77bffbf08731749d9c5e3e1b0dfecc1a984;p=plugins%2Fghs3dprlplugin.git CMake: doing proper string comparison in IF clause --- diff --git a/SalomeGHS3DPRLPLUGINConfig.cmake.in b/SalomeGHS3DPRLPLUGINConfig.cmake.in index 5abc5e9..9baeb11 100644 --- a/SalomeGHS3DPRLPLUGINConfig.cmake.in +++ b/SalomeGHS3DPRLPLUGINConfig.cmake.in @@ -68,7 +68,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}"