summaryrefslogtreecommitdiffhomepage
path: root/gui/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-03 09:58:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-03 09:58:24 +0100
commit9da1484e6c1bbd130a6b618f72efb0acf222e548 (patch)
tree1ad866c5b5420ba1b1eaba29216a50edc45cc0c8 /gui/CMakeLists.txt
parent8563a6cc6bd11dcca87e77eb922252b7ddf532e0 (diff)
cmake: can use default hidden visibility on apple
Diffstat (limited to 'gui/CMakeLists.txt')
-rw-r--r--gui/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 7fec9a15..d34ea981 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -41,9 +41,11 @@ endif()
set(c-props)
set(l-props)
-if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
+if(CMAKE_COMPILER_IS_GNUCXX)
set(c-props "-fvisibility=hidden -fvisibility-inlines-hidden")
- set(l-props "-Wl,--as-needed")
+ if(NOT APPLE)
+ set(l-props "-Wl,--as-needed")
+ endif()
endif()
set_target_properties(opentrack PROPERTIES