1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 50c997f..a23b84d 100644
5 @@ -16,7 +16,13 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
6 # TODO figure out what other variables must be set with CACHE
7 # TODO figure out if FORCE is needed here
8 # TODO figure out whether STRING "" is best or if something else is better; also what FORCE does because I forget and later I say it's needed
9 -set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8" CACHE STRING "" FORCE)
11 +# VCPKG PATCH NOTE: Fix build on MacOS
12 +# Due to a bug in CMake (https://gitlab.kitware.com/cmake/cmake/issues/18396) we change CMAKE_OSX_DEPLOYMENT_TARGET to "10.9".
13 +# See the discussion here:
14 +# * https://github.com/andlabs/libui/issues/422
15 +# * https://github.com/andlabs/libui/issues/457
16 +set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "" FORCE)
18 # we want to disable incremental linking