Set the deployment target for macOS

This commit is contained in:
Jean Pierre Cimalando 2020-09-05 07:03:57 +02:00
parent 0205aca375
commit 0849a1b5e5

View file

@ -17,6 +17,11 @@ if (WIN32)
add_compile_definitions(_WIN32_WINNT=0x601)
endif()
# Set macOS compatibility level
if (APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
endif()
# Do not define macros `min` and `max`
if (WIN32)
add_compile_definitions(NOMINMAX)