summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-28 16:23:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-28 16:23:16 +0200
commit720026a79cd6aa33c4180f2241425cdd8829b36b (patch)
treed47db03b15131a2b4091cf2adfc57d79f165cd28 /cmake/opentrack-boilerplate.cmake
parent9519c0f22706ed65f678f78ea7691b0176c310fa (diff)
cmake: fix mingw-w64 llvm build
Diffstat (limited to 'cmake/opentrack-boilerplate.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()