diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-11 08:42:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-11 08:42:11 +0200 |
commit | 040bfc11762872e72e6d01594e4fd07efe0c9665 (patch) | |
tree | 8c2b6560487f9b5b4ea52edce1eb2fb8f2655dcb /cmake | |
parent | 98279cffc09898064e68617f7adc0f142d23ca9c (diff) |
cmake/boilerplate: remove tautology
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 3 |
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() |