aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--3rdparty/imgui/CMakeLists.txt6
-rw-r--r--source/Player.cpp4
2 files changed, 7 insertions, 3 deletions
diff --git a/3rdparty/imgui/CMakeLists.txt b/3rdparty/imgui/CMakeLists.txt
index a82b94f..c9cdc1b 100644
--- a/3rdparty/imgui/CMakeLists.txt
+++ b/3rdparty/imgui/CMakeLists.txt
@@ -2,7 +2,11 @@ file(GLOB_RECURSE IMGUI_SOURCE ${CMAKE_CURRENT_LIST_DIR}/source/*.cpp)
add_library(imgui
${IMGUI_SOURCE}
)
-target_include_directories(imgui PUBLIC ${CMAKE_CURRENT_LIST_DIR}/source)
+target_include_directories(imgui PUBLIC
+ ${CMAKE_SOURCE_DIR}/3rdparty/glfw/source/include
+ ${CMAKE_SOURCE_DIR}/3rdparty/glad/include
+ ${CMAKE_CURRENT_LIST_DIR}/source
+)
set_target_properties(imgui
PROPERTIES
diff --git a/source/Player.cpp b/source/Player.cpp
index 47c3ccc..f56d6ea 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -63,7 +63,7 @@ void Player::HandleKeyInput(int key, int action) {
}
}
-#pragma macro_push("PLAYERKEYBINDS_DO_IO")
+#pragma push_macro("PLAYERKEYBINDS_DO_IO")
#undef PLAYERKEYBINDS_DO_IO
#define PLAYERKEYBINDS_DO_IO(function, fieldPrefix) \
function(file, "left=%d\n", fieldPrefix keybinds.keyLeft); \
@@ -98,4 +98,4 @@ bool Player::SaveToFile() {
return true;
}
-#pragma macro_pop("PLAYERKEYBINDS_DO_IO")
+#pragma pop_macro("PLAYERKEYBINDS_DO_IO")