Salome HOME
PERSALYS should target our ParaView
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 14 Apr 2022 10:17:20 +0000 (12:17 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 14 Apr 2022 10:17:20 +0000 (12:17 +0200)
products/PERSALYS.pyconf
products/patches/PERSALYS-v12-001.patch

index 185d1170e87173c0d04baba7ae02105cdc61b1e2..7913c2a0ce97a06e7e46e1e1c5267e5e484ceaf9 100644 (file)
@@ -27,6 +27,8 @@ default :
              'GUI',
              'Sphinx',
              'qwt',
              'GUI',
              'Sphinx',
              'qwt',
+              'qt',
+              'ParaView',
              'openturns',
              'numpydoc',
              'YACS',
              'openturns',
              'numpydoc',
              'YACS',
index 13c0b22e97022369ae358b4dfb18aa2fc0f5a554..a93379d709bf0a484bd7f0fadb30e67aaa2cbd1b 100644 (file)
@@ -1,5 +1,5 @@
---- PERSALYS_ref/CMakeLists.txt        2022-01-11 16:27:50.000000000 +0100
-+++ PERSALYS_new/CMakeLists.txt        2022-02-27 12:45:01.757523273 +0100
+--- persalys_v12.0_ref/CMakeLists.txt  2022-03-24 11:47:43.000000000 +0100
++++ persalys_v12.0_new/CMakeLists.txt  2022-04-14 12:07:55.519159319 +0200
 @@ -10,6 +10,10 @@
  option (USE_COTIRE "Use cotire for unity builds" OFF)
  option (USE_PARAVIEW "use ParaView" ON)
 @@ -10,6 +10,10 @@
  option (USE_COTIRE "Use cotire for unity builds" OFF)
  option (USE_PARAVIEW "use ParaView" ON)
@@ -39,7 +39,7 @@
  find_package (Boost COMPONENTS filesystem locale REQUIRED)
  if (TARGET Boost::filesystem)
    set (Boost_LIBRARIES Boost::filesystem Boost::locale)
  find_package (Boost COMPONENTS filesystem locale REQUIRED)
  if (TARGET Boost::filesystem)
    set (Boost_LIBRARIES Boost::filesystem Boost::locale)
-@@ -91,6 +109,9 @@
+@@ -91,12 +109,22 @@
      endmacro ()
    endif ()
  
      endmacro ()
    endif ()
  
    find_package (Qwt 6 REQUIRED)
  
    if (USE_PARAVIEW)
    find_package (Qwt 6 REQUIRED)
  
    if (USE_PARAVIEW)
+-    find_package (ParaView 5.8 CONFIG)
++    SET(PARAVIEW_ROOT_DIR $ENV{PARAVIEW_ROOT_DIR} CACHE PATH "Path to the PARAVIEW")
++    IF(PARAVIEW_ROOT_DIR)
++     LIST(APPEND CMAKE_PREFIX_PATH "${PARAVIEW_ROOT_DIR}")
++    ENDIF(PARAVIEW_ROOT_DIR)
++    FIND_PACKAGE(ParaView 5.9 CONFIG)
+     if (ParaView_FOUND)
+       message(STATUS "Found ParaView: ${ParaView_DIR} (found version \"${ParaView_VERSION}\")")
+       list (APPEND PERSALYS_DEFINITIONS -DPERSALYS_HAVE_PARAVIEW)
++    else()
++      message(FATAL "We absolutely need PARAVIEW!")
+     endif ()
++
+   endif ()
+
+ endif ()