From acdd0ef09ec4bf8518a5b0fe6640cddc5d7b662a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 15 Jan 2018 13:09:48 +0100 Subject: [PATCH] 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. --- build/cmake/setup.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/cmake/setup.cmake b/build/cmake/setup.cmake index 9e0e4d24d4..1bc1a10fd8 100644 --- a/build/cmake/setup.cmake +++ b/build/cmake/setup.cmake @@ -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()