Commit dd901290 authored by Victor Zverovich's avatar Victor Zverovich

Check if type_traits actually work.

parent d1ded569
...@@ -36,8 +36,9 @@ foreach (src ${FMT_SOURCES}) ...@@ -36,8 +36,9 @@ foreach (src ${FMT_SOURCES})
set(FMT_TEST_SOURCES ${FMT_TEST_SOURCES} ../${src}) set(FMT_TEST_SOURCES ${FMT_TEST_SOURCES} ../${src})
endforeach () endforeach ()
include(CheckIncludeFileCXX) check_cxx_source_compiles("
check_include_file_cxx(type_traits HAVE_TYPE_TRAITS) #include <type_traits>
int main() { return std::is_copy_constructible<int>::value; }" HAVE_TYPE_TRAITS)
if (HAVE_TYPE_TRAITS) if (HAVE_TYPE_TRAITS)
add_definitions(-DFMT_USE_TYPE_TRAITS=1) add_definitions(-DFMT_USE_TYPE_TRAITS=1)
endif () endif ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment