]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with detecting ParaView / VTK in PARAVIS module
authorvsr <vsr@opencascade.com>
Tue, 12 Jan 2016 10:00:32 +0000 (13:00 +0300)
committervsr <vsr@opencascade.com>
Tue, 12 Jan 2016 10:00:32 +0000 (13:00 +0300)
SalomeGUIConfig.cmake.in

index 641eacac8dc8b010510e286ffe5cd4e594d5d3b1..5a0b0334a119233d28d1f0a859bb7447e56fea91 100644 (file)
@@ -144,18 +144,20 @@ IF(NOT _list_len EQUAL 0)
     LIST(GET _PREREQ            ${_p} _pkg    )
     LIST(GET _PREREQ_CONFIG_DIR ${_p} _pkg_dir)
     LIST(GET _PREREQ_COMPONENTS ${_p} _pkg_compo)
-    MESSAGE(STATUS "===> Reloading targets from ${_pkg} ...")
-    IF(NOT _pkg_compo)
-      FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE 
-          PATHS "${_pkg_dir}" 
-          NO_DEFAULT_PATH)
-    ELSE()
-      STRING(REPLACE "," ";" _compo_lst "${_pkg_compo}")
-      MESSAGE(STATUS "===> (components: ${_pkg_compo})")
-      FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE
-          COMPONENTS ${_compo_lst} 
-          PATHS "${_pkg_dir}"
-          NO_DEFAULT_PATH)
+    IF(NOT OMIT_DETECT_PACKAGE_${_pkg})
+      MESSAGE(STATUS "===> Reloading targets from ${_pkg} ...")
+      IF(NOT _pkg_compo)
+        FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE 
+            PATHS "${_pkg_dir}" 
+            NO_DEFAULT_PATH)
+      ELSE()
+        STRING(REPLACE "," ";" _compo_lst "${_pkg_compo}")
+        MESSAGE(STATUS "===> (components: ${_pkg_compo})")
+        FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE
+            COMPONENTS ${_compo_lst} 
+            PATHS "${_pkg_dir}"
+            NO_DEFAULT_PATH)
+      ENDIF()
     ENDIF()
   ENDFOREACH()
 ENDIF()