Salome HOME
CMake: doing proper string comparison in IF clause
authormpa <mpa@opencascade.com>
Wed, 23 Oct 2013 10:16:03 +0000 (10:16 +0000)
committermpa <mpa@opencascade.com>
Wed, 23 Oct 2013 10:16:03 +0000 (10:16 +0000)
SalomeGHS3DPRLPLUGINConfig.cmake.in

index 5abc5e9be096afbe1ed4aeb6c70ba175eccce800..9baeb11804f1188d72429977b06e328d09fd8690 100644 (file)
@@ -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}"