macos: Specify deployment target version
authorKarl Schultz <karl@lunarg.com>
Wed, 18 Apr 2018 17:46:21 +0000 (11:46 -0600)
committerKarl Schultz <karl@lunarg.com>
Wed, 18 Apr 2018 17:46:21 +0000 (11:46 -0600)
This allows using the build on macOS 10.12 even if built on 10.13.

Change-Id: I21939163551bb9a0d0088513a23dc5d2cf7f5206

CMakeLists.txt

index c9f73ce..77d1d34 100644 (file)
@@ -2,6 +2,10 @@
 # refer to the root source directory of the project as ${VULKAN_SOURCE_DIR} and
 # to the root binary directory of the project as ${VULKAN_BINARY_DIR}.
 cmake_minimum_required(VERSION 2.8.11)
+
+# This must come before the project command.
+set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment version")
+
 project (VULKAN)
 # set (CMAKE_VERBOSE_MAKEFILE 1)