-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work around broken flag detections in gdal
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff -ru gdal-3.10.1/frmts/hdf5/CMakeLists.txt gdal-3.10.1-1/frmts/hdf5/CMakeLists.txt | ||
--- gdal-3.10.1/frmts/hdf5/CMakeLists.txt 2025-01-09 03:54:06 | ||
+++ gdal-3.10.1-1/frmts/hdf5/CMakeLists.txt 2025-02-08 16:48:03 | ||
@@ -94,7 +94,9 @@ | ||
target_compile_definitions(gdal_HDF5 PRIVATE -DWIN32) | ||
endif () | ||
target_include_directories(gdal_HDF5 SYSTEM PRIVATE ${HDF5_INCLUDE_DIRS}) | ||
-gdal_target_link_libraries(gdal_HDF5 PRIVATE ${HDF5_C_LIBRARIES}) | ||
+if (DEFINED HDF5_C_LIBRARIES) | ||
+ gdal_target_link_libraries(gdal_HDF5 PRIVATE ${HDF5_C_LIBRARIES}) | ||
+endif () | ||
|
||
if (HDF5_BUILD_SHARED_LIBS) | ||
target_compile_definitions(gdal_HDF5 PRIVATE -DH5_BUILT_AS_DYNAMIC_LIB) |