From 92d2af4bb83cbdf43392bd5e762653b909cd5629 Mon Sep 17 00:00:00 2001 From: Robert Chisholm Date: Fri, 19 Aug 2022 14:46:29 +0100 Subject: [PATCH] Update CMake imgui alias, it uses this capitlisation for c++ namespace. --- cmake/dependencies/imgui-CMakeLists.txt.in | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/dependencies/imgui-CMakeLists.txt.in b/cmake/dependencies/imgui-CMakeLists.txt.in index 103096a..64f5a68 100644 --- a/cmake/dependencies/imgui-CMakeLists.txt.in +++ b/cmake/dependencies/imgui-CMakeLists.txt.in @@ -54,4 +54,4 @@ set_property(TARGET imgui PROPERTY POSITION_INDEPENDENT_CODE ON) #DisableCompilerWarnings(TARGET imgui) # Create an alias target for imgui to namespace it / make it more like other modern cmake -add_library(Imgui::imgui ALIAS imgui) \ No newline at end of file +add_library(ImGui::ImGui ALIAS imgui) \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2b8753c..9c82a7c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -286,7 +286,7 @@ else() endif() target_link_libraries("${PROJECT_NAME}" freetype) target_link_libraries("${PROJECT_NAME}" "${IL_LIBRARIES}") -target_link_libraries("${PROJECT_NAME}" Imgui::imgui) +target_link_libraries("${PROJECT_NAME}" ImGui::ImGui) target_link_libraries("${PROJECT_NAME}" OpenGL::GL) target_link_libraries("${PROJECT_NAME}" Threads::Threads) if(TARGET Fontconfig::Fontconfig)