Skip to content

Commit 14b5601

Browse files
cursoragenttimfox
andcommitted
cmake: disable ImGui on macOS to fix CI build
ImGui C++ headers get pulled into C compilation units on macOS, causing 'unknown type name constexpr' errors. Disable ImGui inspector on macOS until the include/language boundary is fixed. Co-authored-by: Tim Fox <timfox@outlook.com>
1 parent 977866e commit 14b5601

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,8 @@ endif()
15821582

15831583
# --- ImGui Inspector (optional, requires C++) ---
15841584
option(USE_IMGUI "Enable ImGui inspector overlay" ON)
1585-
if(USE_IMGUI)
1585+
# Disable on macOS: imgui C++ headers get pulled into C compilation units, causing "unknown type name 'constexpr'" errors.
1586+
if(USE_IMGUI AND NOT APPLE)
15861587
enable_language(CXX)
15871588
set(IMGUI_SRCS
15881589
src/renderers/vulkan/inspector/vk_imgui.cpp

0 commit comments

Comments
 (0)