-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [netcdf-c] Fix linkage error. * remove unused code
- Loading branch information
1 parent
47d206e
commit edf3d75
Showing
3 changed files
with
14 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: netcdf-c | ||
Version: 4.7.0-2 | ||
Version: 4.7.0-3 | ||
Build-Depends: hdf5, curl | ||
Homepage: https://github.com/Unidata/netcdf-c | ||
Description: a set of self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. |
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,12 @@ | ||
diff --git a/libhdf5/CMakeLists.txt b/libhdf5/CMakeLists.txt | ||
index f3c7bbc..34fc2ab 100644 | ||
--- a/libhdf5/CMakeLists.txt | ||
+++ b/libhdf5/CMakeLists.txt | ||
@@ -20,3 +20,7 @@ add_library(netcdfhdf5 OBJECT ${libnchdf5_SOURCES}) | ||
|
||
# Remember to package this file for CMake builds. | ||
ADD_EXTRA_DIST(${libnchdf5_SOURCES} CMakeLists.txt) | ||
+ | ||
+if(BUILD_SHARED_LIBS) | ||
+target_link_libraries(netcdfhdf5 PRIVATE hdf5::hdf5-shared hdf5::hdf5-static hdf5::hdf5_hl-shared hdf5::hdf5_hl-static) | ||
+endif() |
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