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: CMP0003.rst.txt
Close
CMP0003 ------- Libraries linked via full path no longer produce linker search paths. This policy affects how libraries whose full paths are NOT known are found at link time, but was created due to a change in how CMake deals with libraries whose full paths are known. Consider the code :: target_link_libraries(myexe /path/to/libA.so) CMake 2.4 and below implemented linking to libraries whose full paths are known by splitting them on the link line into separate components consisting of the linker search path and the library name. The example code might have produced something like :: ... -L/path/to -lA ... in order to link to library A. An analysis was performed to order multiple link directories such that the linker would find library A in the desired location, but there are cases in which this does not work. CMake versions 2.6 and above use the more reliable approach of passing the full path to libraries directly to the linker in most cases. The example code now produces something like :: ... /path/to/libA.so .... Unfortunately this change can break code like :: target_link_libraries(myexe /path/to/libA.so B) where ``B`` is meant to find ``/path/to/libB.so``. This code is wrong because the user is asking the linker to find library B but has not provided a linker search path (which may be added with the link_directories command). However, with the old linking implementation the code would work accidentally because the linker search path added for library A allowed library B to be found. In order to support projects depending on linker search paths added by linking to libraries with known full paths, the ``OLD`` behavior for this policy will add the linker search paths even though they are not needed for their own libraries. When this policy is set to ``OLD``, CMake will produce a link line such as :: ... -L/path/to /path/to/libA.so -lB ... which will allow library B to be found as it was previously. When this policy is set to NEW, CMake will produce a link line such as :: ... /path/to/libA.so -lB ... which more accurately matches what the project specified. The setting for this policy used when generating the link line is that in effect when the target is created by an add_executable or add_library command. For the example described above, the code :: cmake_policy(SET CMP0003 OLD) # or cmake_policy(VERSION 2.4) add_executable(myexe myexe.c) target_link_libraries(myexe /path/to/libA.so B) will work and suppress the warning for this policy. It may also be updated to work with the corrected linking approach: :: cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6) link_directories(/path/to) # needed to find library B add_executable(myexe myexe.c) target_link_libraries(myexe /path/to/libA.so B) Even better, library B may be specified with a full path: :: add_executable(myexe myexe.c) target_link_libraries(myexe /path/to/libA.so /path/to/libB.so) When all items on the link line have known paths CMake does not check this policy so it has no effect. Note that the warning for this policy will be issued for at most one target. This avoids flooding users with messages for every target when setting the policy once will probably fix all targets. This policy was introduced in CMake version 2.6.0. 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