diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-06 10:47:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-10 11:19:22 +0200 |
commit | 7d6c570096ae885a24eb525195004fabb2cd7fed (patch) | |
tree | 7a916cccf6e2c0132db41c525deb428dd0120f9e /cmake/opentrack-boilerplate.cmake | |
parent | a4c33d15687de3bc9222c4f8c7dfea274935c756 (diff) |
cmake: unbreak linker language detect for GNU
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 9f6e605b..7a88e6ef 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -84,9 +84,11 @@ function(otr_compat target) set(c-props) set(l-props) + get_property(linker-lang TARGET ${target} PROPERTY LINKER_LANGUAGE) + if(CMAKE_COMPILER_IS_GNUCXX) set(c-props "-fvisibility=hidden") - if(NOT is-c-only) + if(NOT linker-lang STREQUAL "C") set(c-props "${c-props} -fuse-cxa-atexit") endif() endif() |