Skip to content

Add granular CMake targets with generate_cmake.py - #93

Closed
afrind wants to merge 1 commit into
facebookexperimental:mainfrom
afrind:export-D91009068
Closed

Add granular CMake targets with generate_cmake.py#93
afrind wants to merge 1 commit into
facebookexperimental:mainfrom
afrind:export-D91009068

Conversation

@afrind

@afrind afrind commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Summary:
Add granular CMake target generation for moxygen, following the same pattern
used for mvfst and proxygen. This creates individual library targets for each
BUCK cpp_library, enabling more precise dependency tracking.

Key changes:

  • Add MoxygenFunctions.cmake with moxygen_add_library() macro
  • Add generate_cmake.py to auto-generate CMakeLists.txt from BUCK files
  • Add lint_cmake_sync.py for arc lint integration
  • Update sample CMakeLists.txt files with correct granular dependencies
  • Fix GCC ICE in MoQChatClient.cpp by adding helper methods for aggregate init
  • Add BUILD_SAMPLES cmake option (default ON)
  • Require CMake 3.13+ for CMP0079 policy support

Differential Revision: D91009068

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 22, 2026
@meta-codesync

meta-codesync Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

@afrind has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91009068.

…al#93)

Summary:
Pull Request resolved: facebookexperimental#93

Add granular CMake target generation for moxygen, following the same pattern
used for mvfst and proxygen. This creates individual library targets for each
BUCK cpp_library, enabling more precise dependency tracking.

Key changes:
- Add MoxygenFunctions.cmake with moxygen_add_library() macro
- Add generate_cmake.py to auto-generate CMakeLists.txt from BUCK files
- Add lint_cmake_sync.py for arc lint integration
- Update sample CMakeLists.txt files with correct granular dependencies
- Fix GCC ICE in MoQChatClient.cpp by adding helper methods for aggregate init
- Add BUILD_SAMPLES cmake option (default ON)
- Require CMake 3.13+ for CMP0079 policy support

Differential Revision: D91009068
afrind added a commit to afrind/moxygen that referenced this pull request Feb 15, 2026
…al#93)

Summary:
Pull Request resolved: facebookexperimental#93

Add granular CMake target generation for moxygen, following the same pattern
used for mvfst and proxygen. This creates individual library targets for each
BUCK cpp_library, enabling more precise dependency tracking.

Key changes:
- Add MoxygenFunctions.cmake with moxygen_add_library() macro
- Add generate_cmake.py to auto-generate CMakeLists.txt from BUCK files
- Add lint_cmake_sync.py for arc lint integration
- Update sample CMakeLists.txt files with correct granular dependencies
- Fix GCC ICE in MoQChatClient.cpp by adding helper methods for aggregate init
- Add BUILD_SAMPLES cmake option (default ON)
- Require CMake 3.13+ for CMP0079 policy support

Differential Revision: D91009068
@meta-codesync meta-codesync Bot closed this in 1d4edfa Feb 17, 2026
@meta-codesync

meta-codesync Bot commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 1d4edfa.

afrind pushed a commit to afrind/moxygen that referenced this pull request Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants