Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / paraview-5.11.1.p001-FindCGNS.patch
1 --- ParaView-5.11.1_ref/VTK/CMake/FindCGNS.cmake        2023-04-05 10:00:53.000000000 +0200
2 +++ ParaView-5.11.1_dev/VTK/CMake/FindCGNS.cmake        2023-04-12 09:26:23.659042547 +0200
3 @@ -5,10 +5,15 @@
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
14    PATHS
15 +    ${CGNS_ROOT_DIR}/include
16      /usr/local/include
17      /usr/include
18    DOC "CGNS include directory")