Skip to content

Commit

Permalink
set C standard to 11 for Vulkan backend 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-devv committed Apr 1, 2024
1 parent 5515796 commit 943a8fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/memonitor-sys/vulkan/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 3.5)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED true)

project(memonitor-vk LANGUAGES C)

set(VULKAN_HEADERS_INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/Vulkan-Headers")
Expand All @@ -10,7 +13,6 @@ 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)
Expand Down

0 comments on commit 943a8fc

Please sign in to comment.