From: mpa Date: Wed, 23 Oct 2013 10:21:16 +0000 (+0000) Subject: CMake: doing proper string comparison in IF clause X-Git-Tag: V7_3_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a692183694d150d0cc921a64de306d409de8ed9e;hp=3fc3fd94ed6a01adcb01f27987b491f954fcb30a;p=samples%2Fpycalculator.git CMake: doing proper string comparison in IF clause --- diff --git a/SalomePYCALCULATORConfig.cmake.in b/SalomePYCALCULATORConfig.cmake.in index 838ba9b..fe17b33 100644 --- a/SalomePYCALCULATORConfig.cmake.in +++ b/SalomePYCALCULATORConfig.cmake.in @@ -67,7 +67,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}"