Skip to content

Conversation

kaniteru
Copy link

@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
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.

2 participants