-
Notifications
You must be signed in to change notification settings - Fork 834
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 Policy CMP0072 (GLNVD) not applied correctly #1095
Comments
Commit 7d47760 ("moving some settings to an apposite cmake file") moved the `cmake_policy(SET CMP0072 NEW)` from the toplevel scope to the scope of the included file. For details, see https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html Set NO_POLICY_SCOPE when including the file, to move the POLICIES back to the toplevel scope. Fixes cnr-isti-vclab#1095.
Commit 7d47760 ("moving some settings to an apposite cmake file") moved the `cmake_policy(SET CMP0072 NEW)` from the toplevel scope to the scope of the included file. For details, see https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html Set NO_POLICY_SCOPE when including the file, to move the POLICIES back to the toplevel scope. Also remove the extra cmake_minimum_version from external/CMakeLists.txt, as it implicitly calls `cmake_policy(VERSION 3.10)`, resetting any policies introduced with cmake 3.11 and newer (i.e. CMP0072 and CMP0077). Fixes cnr-isti-vclab#1095.
Commit 7d47760 ("moving some settings to an apposite cmake file") moved the `cmake_policy(SET CMP0072 NEW)` from the toplevel scope to the scope of the included file. For details, see https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html Set NO_POLICY_SCOPE when including the file, to move the POLICIES back to the toplevel scope. Also remove the extra cmake_minimum_version from external/CMakeLists.txt, as it implicitly calls `cmake_policy(VERSION 3.10)`, resetting any policies introduced with cmake 3.11 and newer (i.e. CMP0072). Fixes cnr-isti-vclab#1095.
Thank you very much @StefanBruens, I didn't know that scope changed also when using |
I think that this is also why I was having the problem related to this issue: probonopd/linuxdeployqt#486 |
Commit 7d47760 moved
the
cmake_policy(SET CMP0072 NEW)
from the toplevel scope to the scope of the included file.https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html:
The text was updated successfully, but these errors were encountered: