Set OS X min version for both C and C++ source files

MD-19720 #time 30m
This commit is contained in:
Robert Knight 2013-09-10 15:37:12 +01:00
parent ddce2d6e73
commit 5d2ce7e8c3

View file

@ -45,6 +45,7 @@ if (APPLE)
# Build the updater so that it works on OS X 10.5 and above.
set(MIN_OSX_VERSION 10.5)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=${MIN_OSX_VERSION}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${MIN_OSX_VERSION}")
endif()