diff options
author | Chris Robinson <[email protected]> | 2008-08-08 08:12:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-08-08 08:12:41 -0700 |
commit | f8ef66954c4cd95a8c91a458b33a8e8318a72d5b (patch) | |
tree | b011a6656d153fb814df91b2166570954ddbf4cb /CMakeLists.txt | |
parent | ef59901e7c5b8813214fde6ee090d835c67277fd (diff) |
Include fenv.h if it exists for fesetround
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ed1f898..8e22ad27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,10 +109,13 @@ ELSE() ENDIF() ENDIF() +CHECK_INCLUDE_FILE(fenv.h HAVE_FENV_H) CHECK_LIBRARY_EXISTS(m sqrtf "" HAVE_SQRTF) CHECK_LIBRARY_EXISTS(m acosf "" HAVE_ACOSF) -CHECK_LIBRARY_EXISTS(m fesetround "" HAVE_FESETROUND) +IF(HAVE_FENV_H) + CHECK_LIBRARY_EXISTS(m fesetround "" HAVE_FESETROUND) +ENDIF() IF(HAVE_SQRTF OR HAVE_ACOSF OR HAVE_FESETROUND) SET(EXTRA_LIBS m ${EXTRA_LIBS}) ENDIF() |