Run-time check for floating point byte order rather than CMake check.

It's safer not to use an unofficial CMake script.
This commit is contained in:
Tsuda Kageyu
2015-07-31 12:46:43 +09:00
parent 13dab99af0
commit 44d9f2bf25
6 changed files with 17 additions and 122 deletions

View File

@ -2,7 +2,6 @@ include(CheckLibraryExists)
include(CheckTypeSize)
include(CheckCXXSourceCompiles)
include(TestBigEndian)
include(TestFloatFormat)
# Check if the size of numeric types are suitable.
@ -46,17 +45,6 @@ else()
set(SYSTEM_BYTEORDER 2)
endif()
# Check if the format of floating point types are suitable.
test_float_format(FP_IEEE754)
if(${FP_IEEE754} EQUAL 1)
set(FLOAT_BYTEORDER 1)
elseif(${FP_IEEE754} EQUAL 2)
set(FLOAT_BYTEORDER 2)
else()
message(FATAL_ERROR "TagLib requires that floating point types are IEEE754 compliant.")
endif()
# Determine which kind of atomic operations your compiler supports.
check_cxx_source_compiles("