diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 69dbb17b0..59d48140e 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -191,10 +191,10 @@ FIND_PROGRAM(SED sed) # https://github.com/fish-shell/fish-shell/issues/5865 CHECK_CXX_SOURCE_COMPILES(" #include -struct big { int foo[64]; }; -std::atomic x; +#include +std::atomic x; int main() { - return x.load().foo[13]; + return x; }" LIBATOMIC_NOT_NEEDED) IF (NOT LIBATOMIC_NOT_NEEDED)