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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user