diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-04 07:57:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-04 07:57:13 +0200 |
commit | fcf5b49d4fe4201909843a373579731605f330f6 (patch) | |
tree | 29d144dc9cee50f219e082c3ee3b6269efa7a1af /cmake/apple.cmake | |
parent | 1c0fae7768f0d63e47879c8c6f65cb515f2511be (diff) |
cmake: fix osx link
Diffstat (limited to 'cmake/apple.cmake')
-rwxr-xr-x | cmake/apple.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/apple.cmake b/cmake/apple.cmake index c0f15727..a23be5e0 100755 --- a/cmake/apple.cmake +++ b/cmake/apple.cmake @@ -6,9 +6,10 @@ 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 -arch x86_64 -Wl,-stack_size,0x4000000" 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) +set(cmake-link-common "-stdlib=libc++ -std=c++11 -arch x86_64") +set(CMAKE_EXE_LINKER_FLAGS "${cmake-link-common} -Wl,-stack_size,0x4000000" CACHE STRING "" FORCE) +set(CMAKE_SHARED_LINKER_FLAGS ${cmake-link-common} CACHE STRING "" FORCE) +set(CMAKE_MODULE_LINKER_FLAGS ${cmake-link-common} CACHE STRING "" FORCE) set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-flto" CACHE STRING "" FORCE) set(CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE} CACHE STRING "" FORCE) |