Second attempt to fix builds failing with GCC < 6

9ad78036 fixed it for SCons but not for CMake.

I also removed some test output stuff that I no longer need.
This commit is contained in:
Jyrki Vesterinen 2016-12-23 01:07:13 +02:00
parent 9ad78036b5
commit ea55e7dbbc

View file

@ -57,9 +57,8 @@ option(ENABLE_HISTORY "Enable using GNU history for history in lua console" ON)
if(NOT CMAKE_CROSSCOMPILING)
try_run(IEEE754_TEST_RETURN_CODE IEEE754_TEST_COMPILED ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src/compile_time_tests/ieee_754.cpp
CMAKE_FLAGS "-DCXX_STANDARD=11" OUTPUT_VARIABLE IEEE754_TEST_OUTPUT)
CMAKE_FLAGS "-DCMAKE_CXX_STANDARD=11")
if(NOT IEEE754_TEST_RETURN_CODE EQUAL 0)
message(${IEEE754_TEST_OUTPUT})
message(FATAL_ERROR "Your platform does not represent floating point numbers in the IEEE 754 format.")
endif()
else()