Skip to content

Commit

Permalink
Update CMake imgui alias, it uses this capitlisation for c++ namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Aug 19, 2022
1 parent 4b99473 commit 92d2af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/dependencies/imgui-CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
add_library(ImGui::ImGui ALIAS imgui)
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 92d2af4

Please sign in to comment.