Skip to content

Conversation

@kaniteru
Copy link
Contributor

@kaniteru kaniteru commented Oct 5, 2025

Hello,

I encountered an issue when using FetchContent to include WebUI in another CMake project.
In this case, CMAKE_SOURCE_DIR does not point to the WebUI root directory, which results in errors.

Additionally, the example projects are always built, even when they are not needed.

So, I made a few small changes to fix this:

  • Replaced CMAKE_SOURCE_DIR with CMAKE_CURRENT_SOURCE_DIR
  • Added a WEBUI_BUILD_EXAMPLES option to control whether example projects are built

Thank you.

- Add WEBUI_BUILD_EXAMPLES option (default: ON)
- Improves integration when used as subproject via FetchContent
@AlbertShown AlbertShown merged commit 0758da5 into webui-dev:main Oct 14, 2025
44 of 48 checks passed
@AlbertShown
Copy link
Member

Thank you @kaniteru for the CMake improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants