From: bruneton Date: Wed, 23 Oct 2013 09:31:38 +0000 (+0000) Subject: CMake: doing proper string comparison in IF clause X-Git-Tag: V7_3_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b53d3e71cbdc086a559ed4690aee6a2aa897f95;p=modules%2Fparavis.git CMake: doing proper string comparison in IF clause --- diff --git a/SalomePARAVISConfig.cmake.in b/SalomePARAVISConfig.cmake.in index 0266beb6..bb78d0e4 100644 --- a/SalomePARAVISConfig.cmake.in +++ b/SalomePARAVISConfig.cmake.in @@ -78,7 +78,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}"