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: set CMP0074 policy explicitly to avoid warnings #583

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

sayerhs
Copy link
Contributor

@sayerhs sayerhs commented Nov 6, 2020

For CMake versions newer than 3.12.0, this PR adds an explicit policy declaration that will stop CMake from emitting warnings.

CMake Warning (dev) at glue-codes/openfast-cpp/CMakeLists.txt:23 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  CMake variable HDF5_ROOT is set to:

    /nopt/nrel/ecom/hpacf/software/2020-07/spack/opt/spack/linux-centos7-skylake_avx512/gcc-8.4.0/hdf5-1.10.4-77byf2hlexhhd5r6r6b6kadw7dw6hum4

  For compatibility, CMake is ignoring the variable.
This warning is for project developers.  Use -Wno-dev to suppress it.

This affects the CMake configuration phase when BUILD_OPENFAST_CPP_API=ON. Doesn't affect any other part of the software.

@rafmudaf rafmudaf merged commit 3d170cc into OpenFAST:dev Nov 9, 2020
@rafmudaf rafmudaf mentioned this pull request Jan 13, 2021
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.

3 participants