summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-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