Merge pull request #428 from andlaus/make_quadmath_test_more_strict

fix test for HAVE_QUAD on some instances of ubuntu 13.10
This commit is contained in:
Roland Kaufmann 2013-11-11 04:41:37 -08:00
commit 63f95c317d

View File

@ -12,11 +12,12 @@ include(CMakePushCheckState)
cmake_push_check_state()
list(APPEND CMAKE_REQUIRED_LIBRARIES "quadmath")
CHECK_C_SOURCE_COMPILES("
CHECK_CXX_SOURCE_COMPILES("
#include <quadmath.h>
int main(void){
__float128 foo = sqrtq(123.456);
foo = FLT128_MIN;
}" HAVE_QUAD)
cmake_pop_check_state()