diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b0dfa587..56f33e1d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -38,7 +38,9 @@ endforeach () check_cxx_source_compiles(" #include - int main() { return std::is_copy_constructible::value; }" HAVE_TYPE_TRAITS) + class C { void operator=(const C&); }; + int main() { static_assert(std::is_copy_assignable::value, ""); }" + HAVE_TYPE_TRAITS) if (HAVE_TYPE_TRAITS) add_definitions(-DFMT_USE_TYPE_TRAITS=1) endif ()