Skip to content

Commit

Permalink
Replace cxx_thread_local check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored and coelckers committed Aug 14, 2023
1 parent 14a3cf8 commit ce8753c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,7 @@ endif()

# Check for thread_local keyword, it's optional at the moment

CHECK_CXX_SOURCE_COMPILES("thread_local int i; int main() { i = 0; }"
HAVE_THREAD_LOCAL)

if( NOT HAVE_THREAD_LOCAL )
if ( NOT (cxx_thread_local IN_LIST CMAKE_CXX_COMPILE_FEATURES) )
message( SEND_ERROR "C++ compiler doesn't support thread_local storage duration specifier" )
endif()

Expand Down

0 comments on commit ce8753c

Please sign in to comment.