Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tuhaihe
Copy link
Member

@tuhaihe tuhaihe commented Oct 31, 2025

Moved cmake_minimum_required() before project() in CMakeLists.txt to resolve the CMake dev warning. This follows CMake best practices where cmake_minimum_required() should be called before project().

Reference: Warn when running cmake ..:

[gpadmin@cdw build]$ cmake ..
CMake Warning (dev) at CMakeLists.txt:14 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.
  • Add the module name, JIRA# to PR/commit and description.
  • Add tests for the change.

Moved cmake_minimum_required() before project() in CMakeLists.txt to
resolve the CMake dev warning. This follows CMake best practices where
cmake_minimum_required() should be called before project().

Reference: Warn when running `cmake ..`:
```
[gpadmin@cdw build]$ cmake ..
CMake Warning (dev) at CMakeLists.txt:14 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.
```
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.

1 participant