This commit is contained in:
Ward Fisher 2012-08-08 17:24:32 +00:00
parent 1085abab25
commit 77bd943296
3 changed files with 4 additions and 5 deletions

View File

@ -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()

View File

@ -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})

View File

@ -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()