Skip to content

Conversation

@jhlegarreta
Copy link
Contributor

Specify cmake_minimum_required prior to top-level project call in CMakeLists.txt.

Fixes:

CMake Warning (dev) at CMakeLists.txt:1 (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.

raised for example in:
https://open.cdash.org/builds/10235866/configure

Specify `cmake_minimum_required` prior to top-level `project` call in
`CMakeLists.txt`.

Fixes:
```
CMake Warning (dev) at CMakeLists.txt:1 (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.
```

raised for example in:
https://open.cdash.org/builds/10235866/configure
@jhlegarreta
Copy link
Contributor Author

jhlegarreta commented Feb 27, 2025

@dzenanz CIs will surely fail; this is being addressed in PR #243.

@jhlegarreta
Copy link
Contributor Author

@dzenanz I do not have merge rights here, so please proceed as time permits.

@dzenanz dzenanz merged commit 66acb1b into KitwareMedical:master Feb 28, 2025
3 of 30 checks passed
@jhlegarreta jhlegarreta deleted the FixCMakeProjMinReqWarning branch February 28, 2025 01:13
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