mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
This commit is contained in:
parent
1085abab25
commit
77bd943296
@ -268,9 +268,9 @@ CHECK_FUNCTION_EXISTS(getrlimit HAVE_GETRLIMIT)
|
||||
|
||||
# Check for the math library so it can be explicitely linked.
|
||||
IF(NOT WIN32)
|
||||
FIND_LIBRARY(MATH NAMES math m libm)
|
||||
MESSAGE(STATUS "Math library: ${MATH}")
|
||||
IF(NOT MATH)
|
||||
FIND_LIBRARY(MMATH NAMES math m libm)
|
||||
MESSAGE(STATUS "Math library: ${MMATH}")
|
||||
IF(NOT MMATH)
|
||||
MESSAGE(FATAL_ERROR "Unable to find the math library.")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
@ -31,7 +31,7 @@ ADD_LIBRARY(netcdf stub.c ${LARGS} )
|
||||
# Add dependencies required for linking.
|
||||
#####
|
||||
|
||||
TARGET_LINK_LIBRARIES(netcdf ${MATH})
|
||||
TARGET_LINK_LIBRARIES(netcdf ${MMATH})
|
||||
|
||||
IF(USE_DAP)
|
||||
TARGET_LINK_LIBRARIES(netcdf ${CURL_LIBRARIES})
|
||||
|
@ -27,7 +27,6 @@ TARGET_LINK_LIBRARIES(nccopy netcdf)
|
||||
|
||||
IF(ENABLE_TESTS)
|
||||
FOREACH(CTEST ${ncDumpChecks})
|
||||
|
||||
ADD_EXECUTABLE(${CTEST}_ncdump ${CTEST}.c)
|
||||
TARGET_LINK_LIBRARIES(${CTEST}_ncdump netcdf)
|
||||
ENDFOREACH()
|
||||
|
Loading…
Reference in New Issue
Block a user