From 66da66771cfa1e3c0c80e1e06dc3dad07bcc55e0 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 27 Mar 2022 21:31:09 -0400 Subject: [PATCH] Fix Linux build --- extern/imgui/CMakeLists.txt | 3 ++- include/octree.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extern/imgui/CMakeLists.txt b/extern/imgui/CMakeLists.txt index c0a2ce5..b170ed7 100644 --- a/extern/imgui/CMakeLists.txt +++ b/extern/imgui/CMakeLists.txt @@ -16,4 +16,5 @@ add_library(imgui src/imstb_textedit.h src/imstb_truetype.h) target_include_directories(imgui PUBLIC include PRIVATE src) -target_link_libraries(imgui PUBLIC SDL2::Core glad) \ No newline at end of file +target_link_libraries(imgui PUBLIC SDL2::Core glad) +target_compile_definitions(imgui PUBLIC IMGUI_IMPL_OPENGL_LOADER_GLAD) \ No newline at end of file diff --git a/include/octree.h b/include/octree.h index fceb75b..c6758cf 100644 --- a/include/octree.h +++ b/include/octree.h @@ -1,5 +1,7 @@ #pragma once +#include + #include "aabb.h" constexpr int max_contained_types = 16;