aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindStandardMathLibrary.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmake/FindStandardMathLibrary.cmake b/cmake/FindStandardMathLibrary.cmake
index b174cbb4f..1d1e5b3a9 100644
--- a/cmake/FindStandardMathLibrary.cmake
+++ b/cmake/FindStandardMathLibrary.cmake
@@ -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