CMake/Help/policy
Brad King 882f48e5ba Link libraries by full path even in implicit directories
When CMP0003 was first introduced we wanted to link all libraries by
full path.  However, some projects had problems on platforms where
find_library would find /usr/lib/libfoo.so when the project really
wanted to link to /usr/lib/<arch>/libfoo.so and had been working by
accident because pre-CMP0003 behavior used -lfoo to link.

We first tried to address that in commit v2.6.0~440 (Teach find_library
to avoid returning library paths in system directories, 2008-01-23) by
returning just "foo" for libraries in implicit link directories.  This
caused problems for projects expecting find_library to always return a
full path.  We ended up using the solution in commit v2.6.0~366 (...
switch library paths found in implicit link directories to use -l,
2008-01-31).  However, the special case for libraries in implicit link
directories has also proven problematic and confusing.

Introduce policy CMP0060 to switch to linking all libraries by full path
even if they are in implicit link directories.  Explain in the policy
documentation the factors that led to the original approach and now to
this approach.
2015-04-09 11:29:18 -04:00
..
CMP0000.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0001.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0002.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0003.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0004.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0005.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0006.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0007.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0008.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0009.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0010.rst EVIS: Add policy CMP0053 2014-05-08 13:24:49 -04:00
CMP0011.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0012.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0013.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0014.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0015.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0016.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0017.rst cmPolicies: Fix typo 2013-10-18 18:52:01 +02:00
CMP0018.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0019.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0020.rst Help: Add missing space in policy CMP0020 description 2014-05-30 15:20:13 -04:00
CMP0021.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0022.rst CMP0022: Fix version documented to support LINK_PUBLIC/LINK_PRIVATE 2014-08-13 10:59:30 -04:00
CMP0023.rst Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
CMP0024.rst Merge topic 'doc-policy-version-3.0' 2014-02-10 15:40:33 -05:00
CMP0025.rst Do not warn by default when policy CMP0025 or CMP0047 is not set 2014-04-02 14:43:54 -04:00
CMP0026.rst cmTarget: Restore <CONFIG>_LOCATION to CMP0026 OLD behavior (#14808) 2014-03-17 09:30:39 -04:00
CMP0027.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0028.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0029.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0030.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0031.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0032.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0033.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0034.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0035.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0036.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0037.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0038.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0039.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0040.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0041.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0042.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0043.rst CMP0043: Document old and new interfaces for setting directory property. 2014-03-03 10:11:19 -05:00
CMP0044.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0045.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0046.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0047.rst Do not warn by default when policy CMP0025 or CMP0047 is not set 2014-04-02 14:43:54 -04:00
CMP0048.rst Help: Change version 3.0.0 -> 3.0 in policy docs 2014-02-10 11:40:21 -05:00
CMP0049.rst Add policy CMP0049 to avoid variable expansion in source lists 2014-02-12 11:17:38 -05:00
CMP0050.rst add_custom_command: Disallow use of SOURCE signatures. 2014-02-12 11:19:27 -05:00
CMP0051.rst Help: Fix typo in CMP0051. 2014-04-14 23:00:30 +02:00
CMP0052.rst Help: Link to cmake-buildsystem from CMP0052 docs. 2014-04-17 11:05:20 +02:00
CMP0053.rst Help: Remove duplicate '#' in CMP0053 valid character list 2014-12-01 08:32:51 -05:00
CMP0054.rst Help: Extend policy CMP0054 documentation with an example 2014-12-12 11:12:46 -05:00
CMP0055.rst break: Add policy CMP0055 to check calls strictly 2014-11-25 14:14:20 -05:00
CMP0056.rst try_compile: Pass linker flags into test project (#14066) 2014-12-03 15:30:22 -05:00
CMP0057.rst add_custom_command: Diagnose MAIN_DEPENDENCY limitation. 2015-03-09 12:45:38 +01:00
CMP0058.rst Ninja: Add policy to require explicit custom command byproducts 2015-03-20 17:40:12 -04:00
CMP0059.rst Do not treat DEFINITIONS as a built-in directory property 2015-04-02 13:00:48 -04:00
CMP0060.rst Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
DISALLOWED_COMMAND.txt Add infrastructure for policies that disallow commands 2013-10-22 09:09:51 -04:00