summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-12-08 18:50:03 (GMT)
committerMarius Kintel <marius@kintel.net>2013-12-08 18:50:03 (GMT)
commitb131464f954b2d10f6b065b45038652af2379742 (patch)
treeb862f757df9750bd8128305936f54d792f669a7e /tests
parent941b56e7f851f1cdb987224ec49310062d2400d3 (diff)
#559 CMAKE_OSX_DEPLOYMENT_TARGET needs to be cached
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b84775b..f92eddf 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -14,14 +14,14 @@ include(CMakeParseArguments.cmake)
# Detect Lion and force gcc
IF (APPLE)
- # Somehow, since we build dependencies for 10.7, we need to also build executables
- # for 10.7. This used to not be necessary, but since 10.9 it apparently is..
- SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
EXECUTE_PROCESS(COMMAND sw_vers -productVersion OUTPUT_VARIABLE MACOSX_VERSION)
IF (NOT ${MACOSX_VERSION} VERSION_LESS "10.9.0")
message("Detected Maverick (10.9) or later")
set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
+ # Somehow, since we build dependencies for 10.7, we need to also build executables
+ # for 10.7. This used to not be necessary, but since 10.9 it apparently is..
+ SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.7 CACHE STRING "Deployment target")
ELSEIF (NOT ${MACOSX_VERSION} VERSION_LESS "10.8.0")
message("Detected Mountain Lion (10.8)")
set(CMAKE_C_COMPILER "clang")
contact: Jan Huwald // Impressum