From dd90129066330c40b1e5c274bffa40f2500e9c31 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 29 Sep 2014 09:15:41 -0700 Subject: [PATCH] Check if type_traits actually work. --- test/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 091d7c48..b0dfa587 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -36,8 +36,9 @@ foreach (src ${FMT_SOURCES}) set(FMT_TEST_SOURCES ${FMT_TEST_SOURCES} ../${src}) endforeach () -include(CheckIncludeFileCXX) -check_include_file_cxx(type_traits HAVE_TYPE_TRAITS) +check_cxx_source_compiles(" + #include + int main() { return std::is_copy_constructible::value; }" HAVE_TYPE_TRAITS) if (HAVE_TYPE_TRAITS) add_definitions(-DFMT_USE_TYPE_TRAITS=1) endif ()