summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 0208dcae..bd12601a 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -178,12 +178,13 @@ function(opentrack_boilerplate n)
opentrack_install_sources(${n})
opentrack_compat(${n})
- if(CMAKE_COMPILER_IS_GNUCXX OR APPLE)
+ if(CMAKE_COMPILER_IS_GNUCXX)
set(c-props "-fvisibility=hidden")
if(NOT is-c-only)
set(c-props "${c-props} -fuse-cxa-atexit")
endif()
endif()
+
if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
set(l-props "-Wl,--as-needed")
endif()