diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-14 19:00:52 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-14 19:00:52 +0000 |
commit | 393664dfb259cb9acb6c98816304f164bd553659 (patch) | |
tree | d82c84c3120751035aebc6fd5151e0ebdb2bd385 /share/cmake-3.22/Help/policy/CMP0070.rst | |
parent | de5fa1c66d3bdcbf2bbc62d2504ec6b0b0fb74e1 (diff) | |
parent | 001ed46e3703c78cbc3838adfe4c14ba279f9ff7 (diff) | |
download | linux-x86-androidx-paging-release.tar.gz |
Snap for 8997548 from 001ed46e3703c78cbc3838adfe4c14ba279f9ff7 to androidx-paging-releaseandroidx-paging-release
Change-Id: I16c4afe8c8418013ba71465e1a6aa39006d6a233
Diffstat (limited to 'share/cmake-3.22/Help/policy/CMP0070.rst')
-rw-r--r-- | share/cmake-3.22/Help/policy/CMP0070.rst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/share/cmake-3.22/Help/policy/CMP0070.rst b/share/cmake-3.22/Help/policy/CMP0070.rst new file mode 100644 index 0000000..c880d1f --- /dev/null +++ b/share/cmake-3.22/Help/policy/CMP0070.rst @@ -0,0 +1,27 @@ +CMP0070 +------- + +.. versionadded:: 3.10 + +Define :command:`file(GENERATE)` behavior for relative paths. + +CMake 3.10 and newer define that relative paths given to ``INPUT`` and +``OUTPUT`` arguments of ``file(GENERATE)`` are interpreted relative to the +current source and binary directories, respectively. CMake 3.9 and lower did +not define any behavior for relative paths but did not diagnose them either +and accidentally treated them relative to the process working directory. +Policy ``CMP0070`` provides compatibility with projects that used the old +undefined behavior. + +This policy affects behavior of relative paths given to ``file(GENERATE)``. +The ``OLD`` behavior for this policy is to treat the paths relative to the +working directory of CMake. The ``NEW`` behavior for this policy is to +interpret relative paths with respect to the current source or binary +directory of the caller. + +This policy was introduced in CMake version 3.10. CMake version +|release| warns when the policy is not set and uses ``OLD`` behavior. +Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` +explicitly. + +.. include:: DEPRECATED.txt |