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
Warning generated by policy CMP0054 with CMake >= 3.1 #189
Comments
I understand what is happening, but we cannot set the policy to new without checking all places that trigger the warning. Unfortunately this can be quite difficult because it is only triggered when a code path is evaluated and our cmake code has platform depend branches in many different places. The safe choice for this release would be to make sure this warning is never triggered by any of the installed user-side cmake components (Find*.cmake, CGALConfig.cmake, and so on) and then set it to old. |
Or maybe could we just rename those |
We cannot rename anything in that case because we don't own those variables. As far as I understand what happens in Line 425 it is this:
Here setting the policy to new will not change anything and the code will actually behave closer to our expectation. I don't know about the other cases. |
I agree with your "what happens". It's a non-problematic bug, but only because we're lucky. And it has always been there. I didn't know that MSVC was a CMake variable. |
I'm not sure how quotes affect implicit expansion. The post http://public.kitware.com/pipermail/cmake/2014-March/057200.html suggests it doesn't. However adding explicit extra quotes might help, but it would look really obscure. Not to mention that we would have to do it in all Could you please try both approaches (removing the quotes and adding extra quotes). I can't have a thorough look at this before next week. |
Just tested it.
Note that I'm getting another warning at line 671:
|
Hi. I have read your discussion. Is there a chance we can find a solution before the end of the week? |
I think the first step would be to apply what @cjamin suggested. After that we can have a look at the warnings generated by the configuration. |
Is not it simpler to set the policy to |
On 27 July 2015 at 13:01, Laurent Rineau notifications@github.com wrote:
Sure, that would be an appropriate stop-gap. |
I cannot reproduce with CMake 3.3.20150729-g700d5. What are the steps to reproduce that issue? |
... I found out. The following command triggers the warning:
|
I have merged the PR #212. Now we need to solve the real issue. I postpone it to 4.8. |
Users have reported that CMake >= 3.1 triggers the following warning:
The text was updated successfully, but these errors were encountered: