Disable EXPRECISION and add -lm on OSX (same as the BSDs and Linux)

This commit is contained in:
Martin Kroeker
2020-05-31 12:39:36 +02:00
committed by GitHub
parent 909897f13b
commit 4db00121dc

View File

@@ -8,7 +8,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NO_EXPRECISION 1)
endif ()
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly")
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly|Darwin")
set(EXTRALIB "${EXTRALIB} -lm")
set(NO_EXPRECISION 1)
endif ()