From 6537371cc85261c681a8f68cdfbb45109d85accb Mon Sep 17 00:00:00 2001 From: mpa Date: Wed, 23 Oct 2013 10:16:58 +0000 Subject: [PATCH] CMake: doing proper string comparison in IF clause --- SalomeHexoticPLUGINConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SalomeHexoticPLUGINConfig.cmake.in b/SalomeHexoticPLUGINConfig.cmake.in index a6db03c..0bae0e3 100644 --- a/SalomeHexoticPLUGINConfig.cmake.in +++ b/SalomeHexoticPLUGINConfig.cmake.in @@ -77,7 +77,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}" -- 2.39.2