diff --git a/cmake/re-config.cmake b/cmake/re-config.cmake index b9c09a84d..6c106f2e5 100644 --- a/cmake/re-config.cmake +++ b/cmake/re-config.cmake @@ -266,6 +266,10 @@ endif() # Testing Atomic # +if(NOT WIN32) + set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} -std=c11) +endif() + set(ATOMIC_TEST_CODE " #include #include