From 5028ecda28b6c8cf155caddf360f20ffe53897bf Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Wed, 18 Apr 2018 11:46:21 -0600 Subject: [PATCH] macos: Specify deployment target version This allows using the build on macOS 10.12 even if built on 10.13. Change-Id: I21939163551bb9a0d0088513a23dc5d2cf7f5206 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9f73ce..77d1d34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.7.4