From 9f533d91c3cc78fdc631b2ff7e34a8b10bf358ea Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Thu, 26 Sep 2024 19:17:24 +0200 Subject: [PATCH] fetch glfw only on windows --- CMakeLists.txt | 5 +++-- include/vulkan/buffer.hpp | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07183a1..0633958 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,8 +9,9 @@ add_executable(VulkanSimulation ${SRC_FILES}) find_package(Vulkan REQUIRED) include(deps.cmake) - -FetchContent_MakeAvailable(glfw) +if (WIN32) + FetchContent_MakeAvailable(glfw) +endif () FetchContent_MakeAvailable(glm) FetchContent_MakeAvailable(vma) FetchContent_MakeAvailable(tetgen) diff --git a/include/vulkan/buffer.hpp b/include/vulkan/buffer.hpp index 8b70ca8..691bb86 100644 --- a/include/vulkan/buffer.hpp +++ b/include/vulkan/buffer.hpp @@ -5,9 +5,6 @@ #include "vertex.hpp" #include "vk_mem_alloc.h" -class Instance; -class CommandPool; - class Buffer { public: explicit Buffer(VkDeviceSize size, VkBufferUsageFlags bufferUsage,