diff --git a/CMakeLists.txt b/CMakeLists.txt index cd620901525515..2b629395e60086 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,7 +448,8 @@ int main() { check_cxx_source_compiles(" int main() { - __atomic_load_8(nullptr, 0); + int test; + __atomic_load_n(&test, 0); return 0; } " HAVE_BUILTIN_ATOMICS)