From: bruneton Date: Wed, 23 Oct 2013 09:30:14 +0000 (+0000) Subject: CMake: doing proper string comparison in IF clause X-Git-Tag: BR_hydro_v_0_3_1~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4488c5a0468729a713071c7080b400a4465dab9;p=modules%2Fkernel.git CMake: doing proper string comparison in IF clause --- diff --git a/SalomeKERNELConfig.cmake.in b/SalomeKERNELConfig.cmake.in index 6a51c6b8a..a4e31d324 100644 --- a/SalomeKERNELConfig.cmake.in +++ b/SalomeKERNELConfig.cmake.in @@ -112,7 +112,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}"