Salome HOME
Fix opencv build
[tools/sat_salome.git] / products / patches / paraview.0005-ParaView_find_cgns.patch
1 diff -Naur ParaView-5.8.0_SRC_orig/CMake/FindCGNS.cmake ParaView-5.8.0_SRC_modif/CMake/FindCGNS.cmake
2 --- ParaView-5.8.0_SRC_orig/CMake/FindCGNS.cmake        2020-03-23 13:27:34.000000000 +0300
3 +++ ParaView-5.8.0_SRC_modif/CMake/FindCGNS.cmake       2020-04-09 16:21:57.263362265 +0300
4 @@ -5,6 +5,11 @@
5  # CGNS_LIBRARIES   - List of fully qualified libraries to link against when using CGNS.
6  # CGNS_FOUND       - Do not attempt to use CGNS if "no" or undefined.
7  
8 +SET(CGNS_ROOT_DIR $ENV{CGNS_ROOT_DIR} CACHE PATH "Path to the CGNS.")
9 +IF(CGNS_ROOT_DIR)
10 +  LIST(APPEND CMAKE_PREFIX_PATH "${CGNS_ROOT_DIR}")
11 +ENDIF(CGNS_ROOT_DIR)
12 +
13  find_path(CGNS_INCLUDE_DIR
14    NAMES
15      cgnslib.h