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 warning about Policy CMP0011 with cmake 3.0.2 #967

Open
blattms opened this issue Nov 4, 2016 · 1 comment
Open

CMake warning about Policy CMP0011 with cmake 3.0.2 #967

blattms opened this issue Nov 4, 2016 · 1 comment

Comments

@blattms
Copy link
Member

blattms commented Nov 4, 2016

Not sure whether this known, but I regularly get:

CMake Warning (dev) at CMakeLists.txt:93 (include):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /home/mblatt/DUNE-test/opm-common/cmake/Modules/OpmLibMain.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.
@akva2
Copy link
Member

akva2 commented Nov 4, 2016

it's known as such, i just haven't found time to prioritize it.

the easy solution is to set it to OLD and be done with it. but i would much prefer to sanity check everything and then set it to NEW because the OLD policy is insane.

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

No branches or pull requests

2 participants