mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'policy-cleanup'
94b2d56017Help/policy/CMP0015: Remove stray indentation577e693d3eHelp: Use standard policy advice in CMP000096a0cded7fTests: Avoid enabling C unnecessarily in CMP0022 and CMP0023 casesc941f728ecTests/CPackComponentsForAll: Update cmake_minimum_required to 3.1034070c3319Tests/CMakeCommands/target_link_libraries: Fix keyword consistency73c334677dTests: Use latest cmake_minimum_required possible for old policy casescde63efaeaTests/ExternalProject: Update sample projects to require CMake 3.310d416ad57fTests/PolicyScope: Use more recent policies ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !10022
This commit is contained in:
@@ -21,14 +21,12 @@ the project. See documentation of :command:`cmake_minimum_required` for
|
||||
details.
|
||||
|
||||
Note that the command invocation must appear in the ``CMakeLists.txt``
|
||||
file itself; a call in an included file is not sufficient. However,
|
||||
the :command:`cmake_policy` command may be called to set policy ``CMP0000``
|
||||
to ``OLD`` or ``NEW`` behavior explicitly. The ``OLD`` behavior is to
|
||||
silently ignore the missing invocation. The ``NEW`` behavior is to issue
|
||||
an error instead of a warning. An included file may set ``CMP0000``
|
||||
explicitly to affect how this policy is enforced for the main
|
||||
``CMakeLists.txt`` file.
|
||||
file itself; a call in an included file is not sufficient. The ``OLD``
|
||||
behavior was to silently ignore the missing invocation. The ``NEW``
|
||||
behavior is to issue an error instead of a warning.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0.
|
||||
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.6.0
|
||||
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
|
||||
.. include:: STANDARD_ADVICE.txt
|
||||
|
||||
.. include:: DEPRECATED.txt
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
CMP0015
|
||||
-------
|
||||
|
||||
:command:`link_directories` treats paths relative to the source dir.
|
||||
:command:`link_directories` treats paths relative to the source dir.
|
||||
|
||||
In CMake 2.8.0 and lower the :command:`link_directories` command passed
|
||||
relative paths unchanged to the linker. In CMake 2.8.1 and above the
|
||||
|
||||
Reference in New Issue
Block a user