From e779b2b49a16def63cf1a047b2fd311ce945e060 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Mon, 23 Jan 2017 20:58:44 +0000 Subject: [PATCH] Remove redundant OS_TARGET_* definitions --- CMakeLists.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35f73d3e..9d30599f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,23 +161,6 @@ if (UNIX) endif() if (APPLE) - message(STATUS "OSX_TARGET_MAJOR=${OSX_TARGET_MAJOR}") - message(STATUS "OSX_TARGET_MINOR=${OSX_TARGET_MINOR}") - - if (NOT (OSX_TARGET_MAJOR EQUAL 10)) - message(FATAL_ERROR "Mac OS X target must be 10.x") - endif () - - if (OSX_TARGET_MINOR LESS 6) - # <= 10.5: 32-bit Intel and PowerPC - set(CMAKE_OSX_ARCHITECTURES "ppc;i386" - CACHE STRING "" FORCE) - else() - # >= 10.6: Intel only - set(CMAKE_OSX_ARCHITECTURES "x86_64" - CACHE STRING "" FORCE) - endif() - set(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS} -DGTEST_USE_OWN_TR1_TUPLE=1") find_library(lib_ScreenSaver ScreenSaver)