Set the deployment target for macOS
This commit is contained in:
parent
0205aca375
commit
0849a1b5e5
1 changed files with 5 additions and 0 deletions
|
|
@ -17,6 +17,11 @@ if (WIN32)
|
||||||
add_compile_definitions(_WIN32_WINNT=0x601)
|
add_compile_definitions(_WIN32_WINNT=0x601)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Set macOS compatibility level
|
||||||
|
if (APPLE)
|
||||||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Do not define macros `min` and `max`
|
# Do not define macros `min` and `max`
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_compile_definitions(NOMINMAX)
|
add_compile_definitions(NOMINMAX)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue