From d2ac0811770f5bdde4e3104cbccb7e79947adc3b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 11 Aug 2020 16:23:07 +0200 Subject: [PATCH] Fix taglib cmake type size checks --- 3rdparty/taglib/ConfigureChecks.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/3rdparty/taglib/ConfigureChecks.cmake b/3rdparty/taglib/ConfigureChecks.cmake index a06736250..1ac4e62ab 100644 --- a/3rdparty/taglib/ConfigureChecks.cmake +++ b/3rdparty/taglib/ConfigureChecks.cmake @@ -6,32 +6,32 @@ include(CheckCXXSourceCompiles) # Check if the size of numeric types are suitable. 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.") endif() 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.") endif() 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.") endif() 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.") endif() 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.") endif() 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.") endif() @@ -212,5 +212,5 @@ endif() # Detect WinRT mode if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") - set(PLATFORM WINRT 1) + set(PLATFORM WINRT 1) endif()