mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-04 11:04:28 +00:00
cmake: try to link libm.
This commit is contained in:
parent
d8dea3cc2b
commit
7431c7a717
@ -115,6 +115,7 @@ endif()
|
|||||||
|
|
||||||
check_include_file("tgmath.h" HAVE_TGMATH_H)
|
check_include_file("tgmath.h" HAVE_TGMATH_H)
|
||||||
if(HAVE_TGMATH_H)
|
if(HAVE_TGMATH_H)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES "m")
|
||||||
check_c_source_compiles("#include <tgmath.h>
|
check_c_source_compiles("#include <tgmath.h>
|
||||||
const float val = 2, val2 = 3;
|
const float val = 2, val2 = 3;
|
||||||
int main(){ return (int)(-asin(val) + cos(val2)); }" HAVE_VALID_TGMATH_H )
|
int main(){ return (int)(-asin(val) + cos(val2)); }" HAVE_VALID_TGMATH_H )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user