OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
share
/
cmake-3.26
/
Help
/
policy
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/04/2023 07:10:49 PM
rwxr-xr-x
📄
CMP0000.rst
1.4 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0001.rst
857 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0002.rst
1.13 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0003.rst
3.44 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0004.rst
910 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0005.rst
1.22 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0006.rst
1.13 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0007.rst
693 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0008.rst
1.52 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0009.rst
923 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0010.rst
817 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0011.rst
1.24 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0012.rst
1.32 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0013.rst
943 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0014.rst
748 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0015.rst
919 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0016.rst
583 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0017.rst
1021 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0018.rst
1.59 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0019.rst
920 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0020.rst
1.29 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0021.rst
882 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0022.rst
2.09 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0023.rst
1.49 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0024.rst
1.08 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0025.rst
1.34 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0026.rst
1.31 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0027.rst
1.27 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0028.rst
1.27 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0029.rst
309 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0030.rst
335 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0031.rst
474 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0032.rst
528 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0033.rst
580 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0034.rst
392 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0035.rst
322 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0036.rst
437 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0037.rst
1.55 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0038.rst
690 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0039.rst
727 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0040.rst
857 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0041.rst
1.13 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0042.rst
856 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0043.rst
1.82 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0044.rst
916 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0045.rst
758 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0046.rst
667 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0047.rst
1.34 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0048.rst
1.08 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0049.rst
777 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0050.rst
751 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0051.rst
1.07 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0052.rst
1.1 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0053.rst
2.11 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0054.rst
1.31 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0055.rst
738 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0056.rst
1.61 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0057.rst
518 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0058.rst
4.97 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0059.rst
758 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0060.rst
3.54 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0061.rst
1.02 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0062.rst
1.23 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0063.rst
1.33 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0064.rst
633 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0065.rst
1.17 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0066.rst
1.3 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0067.rst
1.54 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0068.rst
1.45 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0069.rst
2.93 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0070.rst
1.11 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0071.rst
1.52 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0072.rst
1.17 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0073.rst
1.1 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0074.rst
1.02 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0075.rst
1.04 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0076.rst
1.04 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0077.rst
2.77 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0078.rst
892 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0079.rst
2.05 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0080.rst
1.05 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0081.rst
998 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0082.rst
1.13 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0083.rst
2.19 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0084.rst
1.14 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0085.rst
909 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0086.rst
787 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0087.rst
1.28 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0088.rst
1.27 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0089.rst
1.43 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0090.rst
1.32 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0091.rst
2.42 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0092.rst
1.67 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0093.rst
1.09 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0094.rst
929 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0095.rst
1.57 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0096.rst
1.19 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0097.rst
1.12 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0098.rst
1.4 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0099.rst
1.06 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0100.rst
1.52 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0101.rst
1.26 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0102.rst
1.28 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0103.rst
870 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0104.rst
1.99 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0105.rst
690 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0106.rst
796 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0107.rst
666 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0108.rst
686 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0109.rst
1023 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0110.rst
1.27 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0111.rst
1.15 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0112.rst
1.65 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0113.rst
1.76 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0114.rst
4.31 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0115.rst
1.04 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0116.rst
2.18 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0117.rst
1.89 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0118.rst
1.07 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0119.rst
1.72 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0120.rst
2.05 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0121.rst
783 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0122.rst
547 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0123.rst
1.53 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0124.rst
670 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0125.rst
2.13 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0126.rst
1.68 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0127.rst
1.05 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0128.rst
2.59 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0129.rst
1.56 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0130.rst
1020 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0131.rst
1.31 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0132.rst
1.17 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0133.rst
1.45 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0134.rst
1.32 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0135.rst
1.37 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0136.rst
2.35 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0137.rst
1.58 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0138.rst
1.34 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0139.rst
519 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0140.rst
496 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0141.rst
2.57 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0142.rst
1.13 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
CMP0143.rst
1.06 KB
04/04/2023 07:07:49 PM
rw-r--r--
📄
DEPRECATED.txt
156 bytes
04/04/2023 07:07:49 PM
rw-r--r--
📄
DISALLOWED_COMMAND.txt
478 bytes
04/04/2023 07:07:49 PM
rw-r--r--
Editing: CMP0060.rst
Close
CMP0060 ------- .. versionadded:: 3.3 Link libraries by full path even in implicit directories. Policy :policy:`CMP0003` was introduced with the intention of always linking library files by full path when a full path is given to the :command:`target_link_libraries` command. However, on some platforms (e.g. HP-UX) the compiler front-end adds alternative library search paths for the current architecture (e.g. ``/usr/lib/<arch>`` has alternatives to libraries in ``/usr/lib`` for the current architecture). On such platforms the :command:`find_library` may find a library such as ``/usr/lib/libfoo.so`` that does not belong to the current architecture. Prior to policy :policy:`CMP0003` projects would still build in such cases because the incorrect library path would be converted to ``-lfoo`` on the link line and the linker would find the proper library in the arch-specific search path provided by the compiler front-end implicitly. At the time we chose to remain compatible with such projects by always converting library files found in implicit link directories to ``-lfoo`` flags to ask the linker to search for them. This approach allowed existing projects to continue to build while still linking to libraries outside implicit link directories via full path (such as those in the build tree). CMake does allow projects to override this behavior by using an :ref:`IMPORTED library target <Imported Targets>` with its :prop_tgt:`IMPORTED_LOCATION` property set to the desired full path to a library file. In fact, many :ref:`Find Modules` are learning to provide :ref:`Imported Targets` instead of just the traditional ``Foo_LIBRARIES`` variable listing library files. However, this makes the link line generated for a library found by a Find Module depend on whether it is linked through an imported target or not, which is inconsistent. Furthermore, this behavior has been a source of confusion because the generated link line for a library file depends on its location. It is also problematic for projects trying to link statically because flags like ``-Wl,-Bstatic -lfoo -Wl,-Bdynamic`` may be used to help the linker select ``libfoo.a`` instead of ``libfoo.so`` but then leak dynamic linking to following libraries. (See the :prop_tgt:`LINK_SEARCH_END_STATIC` target property for a solution typically used for that problem.) When the special case for libraries in implicit link directories was first introduced the list of implicit link directories was simply hard-coded (e.g. ``/lib``, ``/usr/lib``, and a few others). Since that time, CMake has learned to detect the implicit link directories used by the compiler front-end. If necessary, the :command:`find_library` command could be taught to use this information to help find libraries of the proper architecture. For these reasons, CMake 3.3 and above prefer to drop the special case and link libraries by full path even when they are in implicit link directories. Policy ``CMP0060`` provides compatibility for existing projects. The ``OLD`` behavior for this policy is to ask the linker to search for libraries whose full paths are known to be in implicit link directories. The ``NEW`` behavior for this policy is to link libraries by full path even if they are in implicit link directories. This policy was introduced in CMake version 3.3. Unlike most policies, CMake version |release| does *not* warn by default when this policy is not set and simply uses ``OLD`` behavior. See documentation of the :variable:`CMAKE_POLICY_WARNING_CMP0060 <CMAKE_POLICY_WARNING_CMP<NNNN>>` variable to control the warning. .. include:: DEPRECATED.txt