FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Glob source files with CONFIGURE_DEPENDS by linesight · Pull Request #770 · cztomczak/cefpython · GitHub

Repository navigation

Glob source files with CONFIGURE_DEPENDS - #770

Merged
cztomczak merged 1 commit into
cztomczak:masterfrom
linesight:cmake-configure-depends
Nov 26, 2026
Merged

cztomczak merged 1 commit into
cztomczak:masterfrom
linesight:cmake-configure-depends

Conversation

Copy link
Copy Markdown
Contributor

The CMake globs that collect source files are evaluated only when CMake configures the build tree. An existing tree, such as the one tools/build.py keeps in build/_cmake_build_py, does not see a .cpp or .pyx file added later until it is reconfigured (tools/build.py --clean):

  • A new .cpp file is not compiled. When other code calls into it, linking fails with an undefined reference.
  • A new .pyx file is not staged into pyx_stage/.

This adds CONFIGURE_DEPENDS to those globs, so each build checks them and re-runs CMake when a file was added or removed:

  • CMakeLists.txt: .pyx, handlers/.pyx
  • src/client_handler/CMakeLists.txt: *.cpp, *.mm
  • src/cpp_utils/CMakeLists.txt: *.cpp
  • src/subprocess/CMakeLists.txt: .cpp, .mm, main_message_loop/.cpp, main_message_loop/.mm

The globs that look for CEF binary directories are unchanged. CONFIGURE_DEPENDS needs CMake 3.12; the project requires 3.21. Existing trees need nothing: the edited CMakeLists.txt files make the next build re-run CMake.

The source globs were evaluated only when CMake configured the build
tree, so an existing tree did not see a newly added .cpp or .pyx file
until it was reconfigured. With CONFIGURE_DEPENDS the build re-checks
the globs and re-runs CMake when the list of files changed.
cztomczak merged commit e4cf0ff into cztomczak:master Nov 26, 2026
51 of 52 checks passed

Copy link
Copy Markdown
Owner

Looks good.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL