]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
CMake: doing proper string comparison in IF clause
authorbruneton <bruneton>
Wed, 23 Oct 2013 09:30:41 +0000 (09:30 +0000)
committerbruneton <bruneton>
Wed, 23 Oct 2013 09:30:41 +0000 (09:30 +0000)
SalomeMEDConfig.cmake.in

index 3cb2834b026bea8fc1daa49f560ae9ffd5568305..fbc10b488265563dcab56e51f0e8eeeb352f4d51 100644 (file)
@@ -94,7 +94,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}"