summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 2b20e8ed..c6392237 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -86,7 +86,9 @@ function(otr_compat target)
if(CMAKE_COMPILER_IS_GNUCXX)
set(c-props " -fvisibility=hidden")
if(NOT is-c-only)
- set(c-props "${c-props} -fuse-cxa-atexit")
+ if(NOT WIN32 OR NOT ".${CMAKE_CXX_COMPILER_ID}" STREQUAL ".Clang")
+ set(c-props "${c-props} -fuse-cxa-atexit")
+ endif()
endif()
endif()