blob: d6b4c214e92f915acb0ed69d88cb26132ca8d848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd7c4f8..03b7ccf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -866,7 +866,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.")
|