aboutsummaryrefslogtreecommitdiff
path: root/ports/netcdf-c/fix-dependency-libmath.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-08-10 16:08:37 -0700
committerGitHub <noreply@github.com>2020-08-10 16:08:37 -0700
commit7ad0f085d7496a7cc00b3ee45224dc05ee70845e (patch)
tree7db5ce0dedd42865fe50b9079a2b44f169cb3c55 /ports/netcdf-c/fix-dependency-libmath.patch
parentfa1823dcad96448230d30f01f35628b2e1feab08 (diff)
downloadvcpkg-7ad0f085d7496a7cc00b3ee45224dc05ee70845e.tar.gz
vcpkg-7ad0f085d7496a7cc00b3ee45224dc05ee70845e.zip
[netcdf-c] Fix dependency libmath (#12434)
* [netcdf-c] Add dependency embree3 * [netcdf-c] remove dependency embree3, change the search sequence * [netcdf-cxx4] Re-fix dependency hdf5 * Update ports/netcdf-c/CONTROL * [netcdf-c] Remove dependency embree
Diffstat (limited to 'ports/netcdf-c/fix-dependency-libmath.patch')
-rw-r--r--ports/netcdf-c/fix-dependency-libmath.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/netcdf-c/fix-dependency-libmath.patch b/ports/netcdf-c/fix-dependency-libmath.patch
new file mode 100644
index 000000000..0db00ccaf
--- /dev/null
+++ b/ports/netcdf-c/fix-dependency-libmath.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 35c694f..e2c03e5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -839,7 +839,7 @@ ENDIF()
+
+ # Check for the math library so it can be explicitly linked.
+ IF(NOT WIN32)
+- FIND_LIBRARY(HAVE_LIBM NAMES math m libm)
++ FIND_LIBRARY(HAVE_LIBM NAMES m libm math)
+ MESSAGE(STATUS "Found Math library: ${HAVE_LIBM}")
+ IF(NOT HAVE_LIBM)
+ MESSAGE(FATAL_ERROR "Unable to find the math library.")