From 040bfc11762872e72e6d01594e4fd07efe0c9665 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 11 Sep 2016 08:42:11 +0200 Subject: cmake/boilerplate: remove tautology --- cmake/opentrack-boilerplate.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake') 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() -- cgit v1.2.3