Salome HOME
merge from master
[tools/sat_salome.git] / products / patches / paraview-5.11.0.p001-FindCGNS.patch
1 --- ParaView-5.11.0-ref/VTK/CMake/FindCGNS.cmake        2022-09-19 11:31:41.000000000 +0200
2 +++ ParaView-5.11.0-new/VTK/CMake/FindCGNS.cmake        2022-09-28 15:31:01.103508098 +0200
3 @@ -5,6 +5,10 @@
4  # CGNS_LIBRARIES   - List of fully qualified libraries to link against when using CGNS.
5  # CGNS_FOUND       - Do not attempt to use CGNS if "no" or undefined.
6  
7 +SET(CGNS_ROOT_DIR $ENV{CGNS_ROOT_DIR} CACHE PATH "Path to the CGNS.")
8 +IF(CGNS_ROOT_DIR)
9 + LIST(APPEND CMAKE_PREFIX_PATH "${CGNS_ROOT_DIR}")
10 +ENDIF(CGNS_ROOT_DIR)
11  find_path(CGNS_INCLUDE_DIR
12    NAMES
13      cgnslib.h