From 551579636b10bf503268ce1f9b2572edaa58506b Mon Sep 17 00:00:00 2001 From: Pedro Valente Date: Mon, 1 Apr 2024 12:53:19 +0100 Subject: [PATCH] set C standard to 11 for Vulkan backend --- crates/memonitor-sys/vulkan/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/memonitor-sys/vulkan/CMakeLists.txt b/crates/memonitor-sys/vulkan/CMakeLists.txt index a50fedf..7932b73 100644 --- a/crates/memonitor-sys/vulkan/CMakeLists.txt +++ b/crates/memonitor-sys/vulkan/CMakeLists.txt @@ -10,6 +10,7 @@ option(MEMONITOR_VALIDATE "Use Vulkan validation layers" OFF) add_library(memonitor-vk STATIC "include/memonitor.h" "src/memonitor.c") target_include_directories(memonitor-vk PUBLIC "include") target_link_libraries(memonitor-vk PRIVATE volk) +set_property(TARGET memonitor-vk PROPERTY C_STANDARD 11) if (MEMONITOR_VALIDATE) target_compile_definitions(memonitor-vk PUBLIC USE_VALIDATION_LAYERS)