SET(PARAVIEW_QT_VERSION "5")
ENDIF()
-SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(ParaView PARAVIEW_USE_FILE 4)
+# SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(ParaView PARAVIEW_USE_FILE 4)
+find_package(ParaView REQUIRED)
-INCLUDE(${PARAVIEW_USE_FILE})
+#MESSAGE(STATUS "PUF ${PARAVIEW_USE_FILE}")
+#INCLUDE(${PARAVIEW_USE_FILE})
+# This was /home/pascal/dev/build-salome-v94/paraview/build/install/lib/cmake/paraview-5.6/UseParaView.cmake
MESSAGE(STATUS "Looking for VTK in the ParaView installation (PARAVIEW_ROOT_DIR exists and VTK_ROOT_DIR is not defined) ...")
# Extract sub-directory "paraview-x.xx":
- FILE(GLOB VTK_DIR "${PARAVIEW_ROOT_DIR}/lib/cmake/paraview-[1-9].[0-9]*")
+ FILE(GLOB VTK_DIR "${PARAVIEW_ROOT_DIR}/lib/cmake/paraview-[1-9].[0-9]*/vtk")
MESSAGE(STATUS "Setting VTK_DIR to: ${VTK_DIR}")
ENDIF()
-SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(VTK VTK_INCLUDE_DIRS 2)
+#SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(VTK VTK_INCLUDE_DIRS 2)
MARK_AS_ADVANCED(VTK_DIR)
IF(VTK_FOUND)
# Note the double de-reference of "referenceVariable":
SET(_tmp_ROOT_DIR "${${referenceVariable}}")
ENDIF()
- # Up cound can be reset by detection procedure
+ # Up count can be reset by detection procedure
SET(_upCount ${upCount})
IF(DEFINED ${pkg_UC}_UPCOUNT)
SET(_upCount ${${pkg_UC}_UPCOUNT})
ELSE()
IF(_is_check)
IF(NOT IS_DIRECTORY ${_item})
- IF(TARGET ${_item})
- GET_TARGET_PROPERTY(_item ${_item} LOCATION)
- ENDIF()
+# IF(TARGET ${_item})
+# GET_TARGET_PROPERTY(_item ${_item} LOCATION)
+# ENDIF()
GET_FILENAME_COMPONENT(_item ${_item} PATH)
ENDIF()
IF(EXISTS ${_item})