summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-11 08:42:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-11 08:42:11 +0200
commit040bfc11762872e72e6d01594e4fd07efe0c9665 (patch)
tree8c2b6560487f9b5b4ea52edce1eb2fb8f2655dcb
parent98279cffc09898064e68617f7adc0f142d23ca9c (diff)
cmake/boilerplate: remove tautology
-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()