Parcourir la source

Disable dangerous macOS SDK macros

They define macros such as "check()" which causes our code to break as
we have methods with that name.
tags/v1.11.90
Pierre Ossman il y a 2 ans
Parent
révision
e7f8370ffc
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5
    0
      CMakeLists.txt

+ 5
- 0
CMakeLists.txt Voir le fichier

add_definitions(-D_WIN32_WINNT=0x0601) add_definitions(-D_WIN32_WINNT=0x0601)
endif() endif()


# Legacy macros (macOS 10.12 and older) conflict with our code
if(APPLE)
add_definitions(-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0)
endif()

if(CMAKE_SIZEOF_VOID_P MATCHES 8) if(CMAKE_SIZEOF_VOID_P MATCHES 8)
message(STATUS "64-bit build") message(STATUS "64-bit build")
else() else()

Chargement…
Annuler
Enregistrer