diff --git a/CMakeLists.txt b/CMakeLists.txt index 086e831fcb..5113468159 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,8 @@ if(LINUX OR APPLE) # comes from; probably a XCode preset? set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections") endif() + add_definitions(-D__MAC_OS_X_VERSION_MIN_REQUIRED=140000) + add_definitions(-DTARGET_OS_OSX) endif() if (USE_LLD)