diff options
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 821de1ba..3c5bd90a 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -87,8 +87,8 @@ function(otr_compat target) get_property(linker-lang TARGET ${target} PROPERTY LINKER_LANGUAGE) if(CMAKE_COMPILER_IS_GNUCXX) - set(c-props "-fvisibility=hidden") - if(NOT ".${linker-lang}" STREQUAL ".C") + set(c-props " -fvisibility=hidden") + if(NOT is-c-only) set(c-props "${c-props} -fuse-cxa-atexit") endif() endif() |