mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-21 17:19:36 +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
|
||||
"
|
||||
#include<cmath>
|
||||
int main(int argc, char **argv) {
|
||||
(void)std::sin(argc));
|
||||
(void)std::log(argc));
|
||||
return 0;
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user