OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
doc
/
cmake
/
html
/
_sources
/
policy
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/04/2023 07:10:48 PM
rwxr-xr-x
📄
CMP0000.rst.txt
1.4 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0001.rst.txt
857 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0002.rst.txt
1.13 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0003.rst.txt
3.44 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0004.rst.txt
910 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0005.rst.txt
1.22 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0006.rst.txt
1.13 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0007.rst.txt
693 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0008.rst.txt
1.52 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0009.rst.txt
923 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0010.rst.txt
817 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0011.rst.txt
1.24 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0012.rst.txt
1.32 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0013.rst.txt
943 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0014.rst.txt
748 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0015.rst.txt
919 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0016.rst.txt
583 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0017.rst.txt
1021 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0018.rst.txt
1.59 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0019.rst.txt
920 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0020.rst.txt
1.29 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0021.rst.txt
882 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0022.rst.txt
2.09 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0023.rst.txt
1.49 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0024.rst.txt
1.08 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0025.rst.txt
1.34 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0026.rst.txt
1.31 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0027.rst.txt
1.27 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0028.rst.txt
1.27 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0029.rst.txt
309 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0030.rst.txt
335 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0031.rst.txt
474 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0032.rst.txt
528 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0033.rst.txt
580 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0034.rst.txt
392 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0035.rst.txt
322 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0036.rst.txt
437 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0037.rst.txt
1.55 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0038.rst.txt
690 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0039.rst.txt
727 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0040.rst.txt
857 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0041.rst.txt
1.13 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0042.rst.txt
856 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0043.rst.txt
1.82 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0044.rst.txt
916 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0045.rst.txt
758 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0046.rst.txt
667 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0047.rst.txt
1.34 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0048.rst.txt
1.08 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0049.rst.txt
777 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0050.rst.txt
751 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0051.rst.txt
1.07 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0052.rst.txt
1.1 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0053.rst.txt
2.11 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0054.rst.txt
1.31 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0055.rst.txt
738 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0056.rst.txt
1.61 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0057.rst.txt
518 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0058.rst.txt
4.97 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0059.rst.txt
758 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0060.rst.txt
3.54 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0061.rst.txt
1.02 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0062.rst.txt
1.23 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0063.rst.txt
1.33 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0064.rst.txt
633 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0065.rst.txt
1.17 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0066.rst.txt
1.3 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0067.rst.txt
1.54 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0068.rst.txt
1.45 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0069.rst.txt
2.93 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0070.rst.txt
1.11 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0071.rst.txt
1.52 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0072.rst.txt
1.17 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0073.rst.txt
1.1 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0074.rst.txt
1.02 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0075.rst.txt
1.04 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0076.rst.txt
1.04 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0077.rst.txt
2.77 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0078.rst.txt
892 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0079.rst.txt
2.05 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0080.rst.txt
1.05 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0081.rst.txt
998 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0082.rst.txt
1.13 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0083.rst.txt
2.19 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0084.rst.txt
1.14 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0085.rst.txt
909 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0086.rst.txt
787 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0087.rst.txt
1.28 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0088.rst.txt
1.27 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0089.rst.txt
1.43 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0090.rst.txt
1.32 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0091.rst.txt
2.42 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0092.rst.txt
1.67 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0093.rst.txt
1.09 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0094.rst.txt
929 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0095.rst.txt
1.57 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0096.rst.txt
1.19 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0097.rst.txt
1.12 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0098.rst.txt
1.4 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0099.rst.txt
1.06 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0100.rst.txt
1.52 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0101.rst.txt
1.26 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0102.rst.txt
1.28 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0103.rst.txt
870 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0104.rst.txt
1.99 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0105.rst.txt
690 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0106.rst.txt
796 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0107.rst.txt
666 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0108.rst.txt
686 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0109.rst.txt
1023 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0110.rst.txt
1.27 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0111.rst.txt
1.15 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0112.rst.txt
1.65 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0113.rst.txt
1.76 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0114.rst.txt
4.31 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0115.rst.txt
1.04 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0116.rst.txt
2.18 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0117.rst.txt
1.89 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0118.rst.txt
1.07 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0119.rst.txt
1.72 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0120.rst.txt
2.05 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0121.rst.txt
783 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0122.rst.txt
547 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0123.rst.txt
1.53 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0124.rst.txt
670 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0125.rst.txt
2.13 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0126.rst.txt
1.68 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0127.rst.txt
1.05 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0128.rst.txt
2.59 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0129.rst.txt
1.56 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0130.rst.txt
1020 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0131.rst.txt
1.31 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0132.rst.txt
1.17 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0133.rst.txt
1.45 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0134.rst.txt
1.32 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0135.rst.txt
1.37 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0136.rst.txt
2.35 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0137.rst.txt
1.58 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0138.rst.txt
1.34 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0139.rst.txt
519 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0140.rst.txt
496 bytes
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0141.rst.txt
2.57 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0142.rst.txt
1.13 KB
04/04/2023 07:03:28 PM
rw-r--r--
📄
CMP0143.rst.txt
1.06 KB
04/04/2023 07:03:28 PM
rw-r--r--
Editing: CMP0060.rst.txt
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