From 720026a79cd6aa33c4180f2241425cdd8829b36b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Jul 2017 16:23:16 +0200 Subject: cmake: fix mingw-w64 llvm build --- cmake/opentrack-boilerplate.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmake') 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() -- cgit v1.2.3