From 0aa3989b8f382f185fdf646cc83a1d16fa31d6ab Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 13 Jun 2023 14:33:10 +0200 Subject: [PATCH] Switched src/CMakeLists.txt to use C++17 by default to resolve issues with aligned_alloc Fixes #344 --- src/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 659382f..1748059 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,8 +17,7 @@ set_target_properties( VulkanMemoryAllocator PROPERTIES CXX_EXTENSIONS OFF - # Use C++14 - CXX_STANDARD 14 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON ) @@ -85,8 +84,7 @@ if(VMA_BUILD_SAMPLE) VmaSample PROPERTIES CXX_EXTENSIONS OFF - # Use C++14 - CXX_STANDARD 14 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON )