Skip to content

Commit 75c7a7b

Browse files
committed
fix(cmake): imgui find module now correctly sets its _FOUND variable in all code paths
1 parent 44f533e commit 75c7a7b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

gui/cmake/Findimgui.cmake

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@
1414
This module sets up an imgui::imgui static library target and exports the IMGUI_BACKENDS_DIR variable.
1515
]]
1616

17+
set_package_properties (
18+
imgui PROPERTIES
19+
URL "https://github.com/ocornut/imgui"
20+
DESCRIPTION "Cross-platform UI library"
21+
TYPE REQUIRED
22+
PURPOSE "UI declaration & layout"
23+
)
24+
25+
set (imgui_FOUND TRUE)
26+
1727
if (TARGET imgui::imgui)
18-
set (imgui_FOUND TRUE)
1928
return ()
2029
endif ()
2130

0 commit comments

Comments
 (0)