'paraview.0017-VTK-openMPI-if-devtoolset.patch',
'paraview.0018-spns-26351-autoconvert.patch',
'paraview.0019-spns-26344-VTK-OpenMP.patch',
- 'paraview.0020.findMPI.patch'
+ 'paraview.0020.findMPI.patch',
+ 'paraview.0021-FindGDAL.patch'
]
}
pyver = 'python' + env.get('PYTHON_VERSION')
env.set('GDAL_ROOT_DIR', prereq_dir)
env.set('GDALHOME', prereq_dir)
+ env.set('GDAL_ROOT', prereq_dir)
+ env.set('GDAL_DIR', prereq_dir)
env.set('GDAL_VERSION',version)
env.set('GDAL_DATA', os.path.join(prereq_dir, 'share', 'gdal'))
- env.set('GDAL_ROOT', os.path.join(prereq_dir, 'root'))
-
env.prepend('PATH', os.path.join(prereq_dir,'bin'))
env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
--- /dev/null
+--- ParaView-5.9.0-ref/VTK/CMake/patches/99/FindGDAL.cmake 2021-02-04 15:22:02.000000000 +0100
++++ ParaView-5.9.0-new/VTK/CMake/patches/99/FindGDAL.cmake 2022-03-08 12:58:13.514095102 +0100
+@@ -60,6 +60,10 @@
+ #
+ #include "gdal.h"
+
++SET(GDAL_ROOT_DIR $ENV{GDAL_ROOT_DIR} CACHE PATH "Path to the GDAL.")
++IF(GDAL_ROOT_DIR)
++ LIST(APPEND CMAKE_PREFIX_PATH "${GDAL_ROOT_DIR}")
++ENDIF(GDAL_ROOT_DIR)
+ find_path(GDAL_INCLUDE_DIR gdal.h
+ HINTS
+ ${GDAL_ROOT}