diff --git a/CMake/win32-cache.cmake b/CMake/win32-cache.cmake index 76b0d8c114..cb55b74774 100644 --- a/CMake/win32-cache.cmake +++ b/CMake/win32-cache.cmake @@ -32,6 +32,7 @@ if(MINGW) set(HAVE_UNISTD_H 1) set(HAVE_LIBGEN_H 1) set(HAVE_STDDEF_H 1) # detected by CMake internally in check_type_size() + set(HAVE_STDINT_H 1) # detected by CMake internally in check_type_size() set(HAVE_STDBOOL_H 1) set(HAVE_BOOL_T "${HAVE_STDBOOL_H}") set(HAVE_STRTOLL 1) @@ -58,6 +59,11 @@ else() set(HAVE_UNISTD_H 0) set(HAVE_STDDEF_H 1) # detected by CMake internally in check_type_size() set(HAVE_STDATOMIC_H 0) + if(NOT MSVC_VERSION LESS 1600) + set(HAVE_STDINT_H 1) # detected by CMake internally in check_type_size() + else() + set(HAVE_STDINT_H 0) # detected by CMake internally in check_type_size() + endif() if(NOT MSVC_VERSION LESS 1800) set(HAVE_STDBOOL_H 1) set(HAVE_STRTOLL 1)