From 3cd88088d9ffccef9d1524ed1789f2e15a2fbc1d Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Mon, 18 Dec 2023 09:53:34 +0100 Subject: [PATCH] test c11 flag --- cmake/re-config.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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