CMake/Help
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
..
command Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
generator Qbs: Add new 'extra' generator for qbs project files 2015-03-20 10:25:11 -04:00
include Help: Reorganize and refine discussion of relocatable packages 2015-04-03 10:52:24 -04:00
manual Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
module OS X: Add FindXCTest module 2015-03-23 09:12:19 -04:00
policy Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
prop_cache Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
prop_dir Do not treat DEFINITIONS as a built-in directory property 2015-04-02 13:00:48 -04:00
prop_gbl Help: Document build targets automatically added to console pool. 2015-02-04 21:52:13 +01:00
prop_inst CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property. 2015-02-21 18:07:36 +01:00
prop_sf VS: Add support for XAML source files 2015-04-03 13:40:35 -04:00
prop_test Help: Link to properties in set_tests_properties. 2015-04-04 19:14:56 +02:00
prop_tgt Help: Place relocatable package notes in their own subsections 2015-04-03 10:52:22 -04:00
release Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
variable Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
index.rst Help: Add a manual for compiler feature control. 2014-05-27 09:35:00 -04:00