From a23259f26ae08e54b6d95aed368dad9e7dc85ccf Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Fri, 13 Apr 2018 09:10:33 -0400 Subject: [PATCH] - remove TLS workaround and turn it into an actual error since it is required in order to even properly compile and not all systems properly detect this. --- src/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bbc6c0f22c..f13efb0ab7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -409,8 +409,7 @@ CHECK_CXX_SOURCE_COMPILES("thread_local int i; int main() { i = 0; }" HAVE_THREAD_LOCAL) if( NOT HAVE_THREAD_LOCAL ) - message( WARNING "C++ compiler doesn't support thread_local storage duration specifier" ) - add_definitions( -Dthread_local= ) + message( SEND_ERROR "C++ compiler doesn't support thread_local storage duration specifier" ) endif() # Check for functions that may or may not exist.