mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 10:48:38 -06:00
Merge topic 'policy-version-env'
33856b1d62Add CMAKE_POLICY_VERSION_MINIMUM environment variable04721acc6cTests: Cover CMAKE_POLICY_VERSION_MINIMUM in initial cache script729470ff6dTests: Cover CMAKE_POLICY_VERSION_MINIMUM in script mode6cd10ffed7Tests: Cover CMAKE_POLICY_VERSION_MINIMUM as cache entry Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: John Parent <john.parent@kitware.com> Merge-request: !10376
This commit is contained in:
@@ -16,6 +16,10 @@ to externally set policies for which a project has not itself been updated:
|
||||
``-DCMAKE_POLICY_VERSION_MINIMUM=3.5``, to try configuring a project
|
||||
that has not been updated to set at least that policy version itself.
|
||||
|
||||
Alternatively, users may set the :envvar:`CMAKE_POLICY_VERSION_MINIMUM`
|
||||
environment variable to initialize the cache entry in new build trees
|
||||
automatically.
|
||||
|
||||
* Projects may set this variable before a call to :command:`add_subdirectory`
|
||||
that adds a third-party project in order to set its policy version without
|
||||
modifying third-party code.
|
||||
|
||||
Reference in New Issue
Block a user