Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake missing some policies and min version #2713

Closed
cvvergara opened this issue Jan 7, 2025 · 0 comments · Fixed by #2714
Closed

cmake missing some policies and min version #2713

cvvergara opened this issue Jan 7, 2025 · 0 comments · Fixed by #2714
Assignees
Labels
Milestone

Comments

@cvvergara
Copy link
Member

cmake needs some adjustments.

For 3.7 use policy (and eventually on 4.0 make the appropriate adjustments)

  1. Change the cmake_minimum_required
CMake Deprecation Warning at CMakeLists.txt:1 (CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
  1. Set the policy about boost
CMake Warning (dev) at CMakeLists.txt:89 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

...

CMake Warning (dev) at CMakeLists.txt:95 (find_package):
  Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
  variables.  Run "cmake --help-policy CMP0144" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  CMake variable BOOST_ROOT is set to:

    E:/jenkins/boost/rel-1_78_0w64gcc81

  For compatibility, find_package is ignoring the variable, but code in a
  .cmake module might still use it.
  1. Set the policy about python and sphinx
CMake Warning (dev) at cmake/FindSphinx.cmake:46 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  doc/CMakeLists.txt:143 (find_package)
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant