aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-06-07 06:58:37 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-06-07 06:58:37 +0000
commit9939776cdb15a166a63d53b16d255a58487b5ecc (patch)
tree9b00741a577cb2704a0e27211e4028c5c452ac58 /cmake
parente30e7d7bcd3128ec53371694b6c0a05c0d4f7732 (diff)
more cmake improvements; start removing the autotools stuff.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/CheckLongDouble.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/modules/CheckLongDouble.cmake b/cmake/modules/CheckLongDouble.cmake
index 8baa072a0..39263f4ab 100644
--- a/cmake/modules/CheckLongDouble.cmake
+++ b/cmake/modules/CheckLongDouble.cmake
@@ -4,9 +4,17 @@ MACRO (CHECK_LONG_DOUBLE _RESULT)
SET(_CHECK_LONG_DOUBLE_SOURCE_CODE "
+#include <cmath>
+
int main(int argc, char *argv[])
{
- long double ld = static_cast<long double>(0);
+ long double ld = static_cast<long double>(1);
+ sqrt(ld);
+ cos(ld);
+ sin(ld);
+ exp(ld);
+ log(ld);
+ fabs(ld);
return 0;
}