Skip to content

Commit cb5925c

Browse files
committed
fix(cmake): use correct GLFW and OpenGL target names for all platforms
- GLFW::GLFW → glfw (vcpkg glfw3 and source installs both create 'glfw') - OpenGL::OpenGL → OpenGL::GL (OpenGL::OpenGL is GLVND-only; OpenGL::GL is the cross-platform target that exists on Windows and Linux)
1 parent 877d72a commit cb5925c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ if(GLFW3_FOUND AND OpenGL_FOUND AND GLAD_FOUND AND ImGui_FOUND)
3535
src/core/gfx/render_texture.cpp
3636
)
3737
target_link_libraries(convoy_core PUBLIC
38-
GLFW::GLFW
39-
OpenGL::OpenGL
38+
glfw
39+
OpenGL::GL
4040
GLAD::GLAD
4141
ImGui::ImGui
4242
)

src/cmake/FindImGui.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(EXISTS "${IMGUI_DIR}/imgui.h" AND
2121
"${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp"
2222
"${IMGUI_DIR}/backends/imgui_impl_glfw.cpp"
2323
)
24-
target_link_libraries(ImGui INTERFACE OpenGL::OpenGL GLFW::GLFW)
24+
target_link_libraries(ImGui INTERFACE OpenGL::GL glfw)
2525
add_library(ImGui::ImGui ALIAS ImGui)
2626
endif()
2727
set(ImGui_FOUND TRUE)

0 commit comments

Comments
 (0)