Fix taglib cmake type size checks
This commit is contained in:
14
3rdparty/taglib/ConfigureChecks.cmake
vendored
14
3rdparty/taglib/ConfigureChecks.cmake
vendored
@@ -6,32 +6,32 @@ include(CheckCXXSourceCompiles)
|
|||||||
# Check if the size of numeric types are suitable.
|
# Check if the size of numeric types are suitable.
|
||||||
|
|
||||||
check_type_size("short" SIZEOF_SHORT)
|
check_type_size("short" SIZEOF_SHORT)
|
||||||
if(NOT ${SIZEOF_SHORT} EQUAL 2)
|
if(NOT SIZEOF_SHORT EQUAL 2)
|
||||||
message(FATAL_ERROR "TagLib requires that short is 16-bit wide.")
|
message(FATAL_ERROR "TagLib requires that short is 16-bit wide.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_type_size("int" SIZEOF_INT)
|
check_type_size("int" SIZEOF_INT)
|
||||||
if(NOT ${SIZEOF_INT} EQUAL 4)
|
if(NOT SIZEOF_INT EQUAL 4)
|
||||||
message(FATAL_ERROR "TagLib requires that int is 32-bit wide.")
|
message(FATAL_ERROR "TagLib requires that int is 32-bit wide.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_type_size("long long" SIZEOF_LONGLONG)
|
check_type_size("long long" SIZEOF_LONGLONG)
|
||||||
if(NOT ${SIZEOF_LONGLONG} EQUAL 8)
|
if(NOT SIZEOF_LONGLONG EQUAL 8)
|
||||||
message(FATAL_ERROR "TagLib requires that long long is 64-bit wide.")
|
message(FATAL_ERROR "TagLib requires that long long is 64-bit wide.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_type_size("wchar_t" SIZEOF_WCHAR_T)
|
check_type_size("wchar_t" SIZEOF_WCHAR_T)
|
||||||
if(${SIZEOF_WCHAR_T} LESS 2)
|
if(SIZEOF_WCHAR_T LESS 2)
|
||||||
message(FATAL_ERROR "TagLib requires that wchar_t is sufficient to store a UTF-16 char.")
|
message(FATAL_ERROR "TagLib requires that wchar_t is sufficient to store a UTF-16 char.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_type_size("float" SIZEOF_FLOAT)
|
check_type_size("float" SIZEOF_FLOAT)
|
||||||
if(NOT ${SIZEOF_FLOAT} EQUAL 4)
|
if(NOT SIZEOF_FLOAT EQUAL 4)
|
||||||
message(FATAL_ERROR "TagLib requires that float is 32-bit wide.")
|
message(FATAL_ERROR "TagLib requires that float is 32-bit wide.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_type_size("double" SIZEOF_DOUBLE)
|
check_type_size("double" SIZEOF_DOUBLE)
|
||||||
if(NOT ${SIZEOF_DOUBLE} EQUAL 8)
|
if(NOT SIZEOF_DOUBLE EQUAL 8)
|
||||||
message(FATAL_ERROR "TagLib requires that double is 64-bit wide.")
|
message(FATAL_ERROR "TagLib requires that double is 64-bit wide.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -212,5 +212,5 @@ endif()
|
|||||||
|
|
||||||
# Detect WinRT mode
|
# Detect WinRT mode
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||||
set(PLATFORM WINRT 1)
|
set(PLATFORM WINRT 1)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user