summaryrefslogtreecommitdiffhomepage
path: root/cmake/apple.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-04-27 07:22:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-04-27 07:22:51 +0200
commit1870f62515ccc7d5229a9e9844d4e26b90450d00 (patch)
tree1bce9a21032c1af60930c5e91d8756626ac11454 /cmake/apple.cmake
parent0093216223891e912fe0e6ef6f30e84dc0552880 (diff)
cmake: force -arch x86_64 for osx
Diffstat (limited to 'cmake/apple.cmake')
-rw-r--r--cmake/apple.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/apple.cmake b/cmake/apple.cmake
index a166c1e9..e7d0c152 100644
--- a/cmake/apple.cmake
+++ b/cmake/apple.cmake
@@ -1,11 +1,12 @@
set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "" FORCE)
-set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++" CACHE STRING "" FORCE)
+set(CMAKE_CXX_FLAGS "-arch x86_64 -std=c++11 -stdlib=libc++" CACHE STRING "" FORCE)
+set(CMAKE_C_FLAGS "-arch x86_64" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O3 -flto -fvisibility=hidden" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_C_FLAGS_RELEASE} -fvisibility-inlines-hidden " CACHE STRING "" FORCE)
-set(CMAKE_EXE_LINKER_FLAGS "-stdlib=libc++ -std=c++11" CACHE STRING "" FORCE)
+set(CMAKE_EXE_LINKER_FLAGS "-stdlib=libc++ -std=c++11 -arch x86_64" CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} CACHE STRING "" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} CACHE STRING "" FORCE)
@@ -17,4 +18,4 @@ 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)
-set(Qt5_DIR ~/Qt5.5.1/5.5/clang_64/lib/cmake/Qt5)
+set(Qt5_DIR ~/Qt5.6.0/5.6/clang_64/lib/cmake/Qt5)