vcpkg/ports/netcdf-c/fix-dependency-libmath.patch
Jack·Boos·Yu 7ad0f085d7
[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
2020-08-10 16:08:37 -07:00

14 lines
450 B
Diff

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.")