mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Removed unnecessary cmake osx deployment target value
This commit is contained in:
parent
37aee610c8
commit
40ddcac203
@ -32,9 +32,6 @@ endif()
|
|||||||
if(NOT CMAKE_OSX_ARCHITECTURES)
|
if(NOT CMAKE_OSX_ARCHITECTURES)
|
||||||
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "macOS architecture to build; 64-bit is expected" FORCE)
|
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "macOS architecture to build; 64-bit is expected" FORCE)
|
||||||
endif()
|
endif()
|
||||||
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" CACHE STRING "macOS deployement target; 10.7+ is expected" FORCE)
|
|
||||||
endif()
|
|
||||||
if(NOT CMAKE_OSX_SYSROOT)
|
if(NOT CMAKE_OSX_SYSROOT)
|
||||||
# query the path to the default SDK, will fail on non-macOS, but it's okay.
|
# query the path to the default SDK, will fail on non-macOS, but it's okay.
|
||||||
execute_process(COMMAND xcodebuild -sdk macosx -version Path
|
execute_process(COMMAND xcodebuild -sdk macosx -version Path
|
||||||
@ -260,11 +257,6 @@ if(SFML_OS_MACOSX)
|
|||||||
message(FATAL_ERROR "Only 64-bit architecture is supported")
|
message(FATAL_ERROR "Only 64-bit architecture is supported")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Ensure macOS 10.7+ is used
|
|
||||||
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS "10.7")
|
|
||||||
message(FATAL_ERROR "macOS 10.7 or greater is required for the deployment target.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# configure Xcode templates
|
# configure Xcode templates
|
||||||
set(XCODE_TEMPLATES_ARCH "\$(NATIVE_ARCH_ACTUAL)")
|
set(XCODE_TEMPLATES_ARCH "\$(NATIVE_ARCH_ACTUAL)")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user