Skip to content

Commit

Permalink
fix link error
Browse files Browse the repository at this point in the history
  • Loading branch information
Monica committed Oct 17, 2024
1 parent 1c7fb02 commit cb4e0a8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions ports/netcdf-c/fix-dependency-libmath.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ index 701ecc3..ffe15a9 100644
+ endif()
+ endblock()
FIND_LIBRARY(HAVE_LIBM NAMES math m libm)
MESSAGE(STATUS "Found Math library: ${HAVE_LIBM}")
IF(NOT HAVE_LIBM)
IF(NOT HAVE_LIBM)
CHECK_FUNCTION_EXISTS(exp HAVE_LIBM_FUNC)
15 changes: 15 additions & 0 deletions ports/netcdf-c/fix-dependency-szip.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 039f907..00dbf5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1146,7 +1146,9 @@ ENDIF()
endmacro(set_std_filter)

# Locate some compressors
-FIND_PACKAGE(Szip)
+FIND_PACKAGE(Szip NAMES szip CONFIG)
+set(Szip_INCLUDE_DIRS ${SZIP_PACKAGE_NAME}_INCLUDE_DIR)
+set(Szip_LIBRARIES ${${SZIP_PACKAGE_NAME}_EXPORT_LIBRARIES})
FIND_PACKAGE(Bz2)
FIND_PACKAGE(Blosc)
FIND_PACKAGE(Zstd)
13 changes: 0 additions & 13 deletions ports/netcdf-c/fix-dependency-zlib.patch

This file was deleted.

2 changes: 1 addition & 1 deletion ports/netcdf-c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
no-install-deps.patch
fix-dependency-zlib.patch
use_targets.patch
fix-dependency-libmath.patch
fix-linkage-error.patch
fix-manpage-msys.patch
fix-dependency-libzip.patch
fix-dependency-mpi.patch
fix-pkgconfig.patch
fix-dependency-szip.patch
)

#Remove outdated find modules
Expand Down

0 comments on commit cb4e0a8

Please sign in to comment.