mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 03:19:01 +08:00
8cda3938f5
* Fix FindCMath * x-add-version
14 lines
552 B
Diff
14 lines
552 B
Diff
diff --git a/cmake/FindCMath.cmake b/cmake/FindCMath.cmake
|
|
index 2da3b7f..e6d5145 100644
|
|
--- a/cmake/FindCMath.cmake
|
|
+++ b/cmake/FindCMath.cmake
|
|
@@ -32,7 +32,7 @@ include(CheckLibraryExists)
|
|
|
|
check_symbol_exists(pow "math.h" CMath_HAVE_LIBC_POW)
|
|
if(NOT CMath_HAVE_LIBC_POW)
|
|
- find_library(CMath_LIBRARY NAMES m)
|
|
+ find_library(CMath_LIBRARY NAMES m PATHS ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
|
|
|
|
set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
|
|
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMath_LIBRARY})
|