2021-07-23 13:10:42 +08:00
|
|
|
diff --git a/cmake/FindCMath.cmake b/cmake/FindCMath.cmake
|
2022-12-20 03:26:02 +08:00
|
|
|
index ad92218..dd42aba 100644
|
2021-07-23 13:10:42 +08:00
|
|
|
--- a/cmake/FindCMath.cmake
|
|
|
|
+++ b/cmake/FindCMath.cmake
|
2022-12-20 03:26:02 +08:00
|
|
|
@@ -31,7 +31,7 @@ include(CheckSymbolExists)
|
|
|
|
include(CheckLibraryExists)
|
2021-07-23 13:10:42 +08:00
|
|
|
|
|
|
|
check_symbol_exists(pow "math.h" CMath_HAVE_LIBC_POW)
|
2022-12-20 03:26:02 +08:00
|
|
|
-find_library(CMath_LIBRARY NAMES m)
|
|
|
|
+find_library(CMath_LIBRARY NAMES m PATHS ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
|
2021-07-23 13:10:42 +08:00
|
|
|
|
2022-12-20 03:26:02 +08:00
|
|
|
if(NOT CMath_HAVE_LIBC_POW)
|
2021-07-23 13:10:42 +08:00
|
|
|
set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
|