Skip to content

add a cmake 3.20.2 build test#423

Closed
Cyan4973 wants to merge 6 commits into
facebook:devfrom
Cyan4973:ci_ga_cmake_3_22
Closed

add a cmake 3.20.2 build test#423
Cyan4973 wants to merge 6 commits into
facebook:devfrom
Cyan4973:ci_ga_cmake_3_22

Conversation

@Cyan4973
Copy link
Copy Markdown
Contributor

@Cyan4973 Cyan4973 commented Feb 25, 2026

This new test is designed to detect issues like #282

In the process, it was discovered that #282 was not enough to fix compatibility issues,
so this PR bundles an additional cmake fix.

@Cyan4973 Cyan4973 self-assigned this Feb 25, 2026
@Cyan4973 Cyan4973 added build Build system and scripts tests labels Feb 25, 2026
@meta-cla meta-cla Bot added the cla signed label Feb 25, 2026
@Cyan4973
Copy link
Copy Markdown
Contributor Author

Good, the test fails as it should without #282 fix.

Let's now rebase on top of #282 .

@Cyan4973
Copy link
Copy Markdown
Contributor Author

Well, the test is still failing after #282,
adding an additional fix.

@Cyan4973
Copy link
Copy Markdown
Contributor Author

And with the additional fix, it now works fine on cmake 3.22.

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 25, 2026

@Cyan4973 has imported this pull request. If you are a Meta employee, you can view this in D94418093.

Cyan4973 and others added 6 commits March 7, 2026 17:28
to detect issues such as facebook#282
OVERRIDE_FIND_PACKAGE (CMake 3.24+) redirects find_package() calls
to FetchContent, useful when multiple subdirectories independently
call find_package(googletest). In this project, no other CMakeLists.txt
does that — targets from FetchContent_MakeAvailable are used directly.
So both OVERRIDE_FIND_PACKAGE and its corresponding find_package call
were unnecessary, and broke configure on CMake < 3.24.
The cmake 3.22 job only needs to verify build system compatibility,
not re-run the full test suite which is already covered by the
default cmake job.
…e minimum required version specified in CMakeLists.txt) instead of 3.22.6 to ensure backward compatibility with older cmake versions.

Test Plan: Workflow syntax is valid. The change will be tested when the workflow runs in CI.
@Cyan4973 Cyan4973 changed the title add a cmake 3.22 build test add a cmake 3.20.2 build test Mar 8, 2026
@meta-codesync meta-codesync Bot closed this in b0ca9f8 Mar 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 8, 2026

@Cyan4973 merged this pull request in b0ca9f8.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants