summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/apple.cmake1
-rw-r--r--cmake/opentrack-build.cmake4
2 files changed, 4 insertions, 1 deletions
diff --git a/cmake/apple.cmake b/cmake/apple.cmake
index 3db8e3ef..d3cc41eb 100644
--- a/cmake/apple.cmake
+++ b/cmake/apple.cmake
@@ -15,7 +15,6 @@ set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-flto" CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE} CACHE STRING "" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE} CACHE STRING "" FORCE)
-set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "" FORCE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8" CACHE STRING "" FORCE)
set(OpenCV_DIR ~/dev/opentrack-depends/opencv/build)
diff --git a/cmake/opentrack-build.cmake b/cmake/opentrack-build.cmake
index 6f23f561..a6cdcda3 100644
--- a/cmake/opentrack-build.cmake
+++ b/cmake/opentrack-build.cmake
@@ -3,3 +3,7 @@ if(NOT CMAKE_INSTALL_PREFIX)
endif()
set(CMAKE_BUILD_TYPE_INIT "RELEASE")
+
+if(APPLE)
+ set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "" FORCE)
+endif()