Skip to content

[cmake] move cmake_minimum_required to first line#7210

Merged
jameslamb merged 2 commits intomasterfrom
misc/cmake
Apr 1, 2026
Merged

[cmake] move cmake_minimum_required to first line#7210
jameslamb merged 2 commits intomasterfrom
misc/cmake

Conversation

@jameslamb
Copy link
Copy Markdown
Member

Contributes to #6774

Moves cmake_minimum_required() to the top of CMakeLists.txt.

As described in https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html, this call informs all of CMake's version-dependent behavior. It should always be the first statement in a CMakeListst.txt file.

@jameslamb
Copy link
Copy Markdown
Member Author

Thanks for checking in on reviews @guolinke , there's a lot I'd like to do here and each step helps!

@jameslamb jameslamb merged commit 64ab66e into master Apr 1, 2026
68 checks passed
@jameslamb jameslamb deleted the misc/cmake branch April 1, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants