Check for HAVE_TYPE_TRAITS in CMake build not only for MSVC

This check is needed for all compilers, although it can be skipped for
MSVC versions too old to have either type_traits or tr1/type_traits.
This commit is contained in:
Vadim Zeitlin
2018-01-15 13:09:48 +01:00
parent 00b3b323de
commit acdd0ef09e

View File

@@ -580,7 +580,7 @@ endif()
check_cxx_symbol_exists(round math.h HAVE_ROUND)
# Check includes
if(NOT MSVC_VERSION LESS 1600)
if(NOT MSVC_VERSION OR NOT MSVC_VERSION LESS 1600)
check_include_file_cxx(tr1/type_traits HAVE_TR1_TYPE_TRAITS)
check_include_file_cxx(type_traits HAVE_TYPE_TRAITS)
endif()