build: Remove VS2015 support
authorJuan Ramos <juan@lunarg.com>
Mon, 16 Jan 2023 21:33:39 +0000 (14:33 -0700)
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>
Mon, 16 Jan 2023 22:42:04 +0000 (15:42 -0700)
CMakeLists.txt
tests/framework/test_util.h

index cd6f9214f7be86d3af23f3a2888e0b6f888c2ef3..ef7b06c82e3d92f49808a9897e0ca933aa3c104d 100644 (file)
 cmake_minimum_required(VERSION 3.10.2)
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
-# If we are building in Visual Studio 2015 and with a CMake version 3.19 or greater, we need to set this variable
-# so that CMake will choose a Windows SDK version higher than 10.0.14393.0, as dxgi1_6.h is only found in Windows SDK
-# 10.0.17763 and higher.
-set(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM OFF)
-
 project(Vulkan-Loader)
 
 # Gets the header version used during code generation
index 98aa3758d31568a26e1091764f2822ce5872ce19..cf1b22ee9cb0a13e2e73a8c3bf640981cec48690 100644 (file)
@@ -236,17 +236,7 @@ class FolderManager {
 // src - std::string to read from
 // dst - char array to write to
 // size_dst - number of characters in the dst array
-inline void copy_string_to_char_array(std::string const& src, char* dst, size_t size_dst) {
-// Creates a spurious C4996 Warning in VS 2015 - ignore it
-#if defined(WIN32)
-#pragma warning(push)
-#pragma warning(disable : 4996)
-#endif
-    dst[src.copy(dst, size_dst - 1)] = 0;
-#if defined(WIN32)
-#pragma warning(pop)
-#endif
-}
+inline void copy_string_to_char_array(std::string const& src, char* dst, size_t size_dst) { dst[src.copy(dst, size_dst - 1)] = 0; }
 
 #if defined(WIN32)
 // Convert an UTF-16 wstring to an UTF-8 string