From: Pascal Obry Date: Fri, 31 Jan 2020 14:53:49 +0000 (+0100) Subject: Port to ParaView 5.8. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ce5c97c7214d6b42f153bb0e815c5e45c4ea017;p=tools%2Fconfiguration.git Port to ParaView 5.8. --- diff --git a/cmake/FindSalomeParaView.cmake b/cmake/FindSalomeParaView.cmake index d97e8f6..4b2d03b 100644 --- a/cmake/FindSalomeParaView.cmake +++ b/cmake/FindSalomeParaView.cmake @@ -34,6 +34,9 @@ ELSE() 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 diff --git a/cmake/FindSalomeVTK.cmake b/cmake/FindSalomeVTK.cmake index 4e70438..4c58cd5 100644 --- a/cmake/FindSalomeVTK.cmake +++ b/cmake/FindSalomeVTK.cmake @@ -50,11 +50,11 @@ IF(EXISTS "${PARAVIEW_ROOT_DIR}" AND (NOT VTK_ROOT_DIR)) 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) diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index 64c10ad..e1a6d35 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -573,7 +573,7 @@ MACRO(SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS pkg referenceVariable upCount) # 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}) @@ -746,9 +746,9 @@ MACRO(SALOME_ACCUMULATE_ENVIRONMENT envvar) 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})