mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
Add partial-availability error on macOS
When building on macOS targeting an older version than the version of the SDK currently used, this prevents accidentally using APIs that are too new (introduced in macOS versions newer than the deployment target).
This commit is contained in:
parent
eb6604aa74
commit
51b2420181
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ IF(APPLE)
|
||||||
SET(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
|
SET(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
|
||||||
SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
|
SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
|
||||||
LINK_DIRECTORIES(/usr/local/lib)
|
LINK_DIRECTORIES(/usr/local/lib)
|
||||||
|
ADD_COMPILE_OPTIONS(-Werror=partial-availability)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# Compiler Flags
|
# Compiler Flags
|
||||||
|
|
Loading…
Reference in a new issue