Bug #2036 make sure find_standard_math_library_test_program actually compiles (and is guaranteed to call math functions)
(cherry picked from commit ecb7bc9514)
This commit is contained in:
parent
5dda502f84
commit
3620371c5c
@ -19,8 +19,11 @@ include(CheckCXXSourceCompiles)
|
|||||||
# notice the std:: is required on some platforms such as QNX
|
# notice the std:: is required on some platforms such as QNX
|
||||||
|
|
||||||
set(find_standard_math_library_test_program
|
set(find_standard_math_library_test_program
|
||||||
"#include<cmath>
|
"
|
||||||
int main() { std::sin(0.0); std::log(0.0f); }")
|
#include<cmath>
|
||||||
|
int main(int argc, char **){
|
||||||
|
return int(std::sin(double(argc)) + std::log(double(argc)));
|
||||||
|
}")
|
||||||
|
|
||||||
# first try compiling/linking the test program without any linker flags
|
# first try compiling/linking the test program without any linker flags
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user