mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 09:39:34 +08:00
Bug #2036 make sure find_standard_math_library_test_program actually compiles (and is guaranteed to call math functions)
This commit is contained in:
parent
09f595a269
commit
ecb7bc9514
@ -24,10 +24,8 @@ include(CheckCXXSourceCompiles)
|
|||||||
set(find_standard_math_library_test_program
|
set(find_standard_math_library_test_program
|
||||||
"
|
"
|
||||||
#include<cmath>
|
#include<cmath>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **){
|
||||||
(void)std::sin(argc));
|
return int(std::sin(double(argc)) + std::log(double(argc)));
|
||||||
(void)std::log(argc));
|
|
||||||
return 0;
|
|
||||||
}")
|
}")
|
||||||
|
|
||||||
# first try compiling/linking the test program without any linker flags
|
# first try compiling/linking the test program without any linker flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user