CMake/Help/release/dev
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
..
0-sample-topic.rst Begin post-3.2 development 2015-02-05 09:59:04 -05:00
ExternalData-recursive-match.rst ExternalData: Add option to recursively match under directories 2015-03-27 14:44:54 -04:00
ExternalData-url-algo-map.rst ExternalData: Add support for custom algorithm-to-URL mapping 2015-02-25 08:28:05 -05:00
ExternalProject-byproducts-tokens.rst ExternalProject: Replace placeholder tokens in BYPRODUCTS 2015-03-09 10:04:44 -04:00
FindBoost-per-config-libraries.rst Help: Add notes for topic 'FindBoost-per-config-libraries' 2015-02-05 10:57:34 -05:00
FindCUDA-StaticRuntime.rst FindCUDA: Use the static CUDA runtime library if available (#15482) 2015-04-03 10:15:17 -04:00
FindMatlab-rewrite.rst FindMatlab: Rewrite module and provide a usage API 2015-03-17 09:47:04 -04:00
InstallRequiredSystemLibraries-COMPONENT.rst InstallRequiredSystemLibraries: Add option to specify install COMPONENT 2015-03-03 09:17:47 -05:00
UseSWIG-no-MAIN_DEPENDENCY.rst Help: Add notes for topic 'UseSWIG-no-MAIN_DEPENDENCY' 2015-03-31 11:31:27 -04:00
add-CheckFortranCompilerFlag.rst Help: Add notes for topic 'add-CheckFortranCompilerFlag' 2015-02-05 11:18:41 -05:00
add-extra-qbs-generator.rst Qbs: Add new 'extra' generator for qbs project files 2015-03-20 10:25:11 -04:00
add_dependencies-INTERFACE-libraries.rst Allow add_dependencies() on INTERFACE libraries (#15414) 2015-03-27 16:25:09 -04:00
compiler-version-Fortran.rst Help: Add notes for topic 'compiler-version-Fortran' 2015-02-19 09:26:29 -05:00
cpack-rpm-basic-symlink-handling.rst Help: Add notes for topic 'cpack-rpm-basic-symlink-handling' 2015-03-31 14:10:19 -04:00
ctest-repeat-until-fail.rst Help: Add notes for topic 'ctest-repeat-until-fail' 2015-03-23 09:08:22 -04:00
export-interface-source-files.rst Add release notes for export-interface-source-files. 2015-02-11 00:51:35 +01:00
file-globbing-directory-listing.rst Help: Add notes for topic 'file-globbing-directory-listing' 2015-03-20 09:45:51 -04:00
find-command-prefix-from-PATH.rst Teach find_(library|file|path) to get prefixes from PATH (#15370) 2015-02-19 10:03:17 -05:00
install-DESTINATION-genex.rst install: Allow generator expressions in TARGETS DESTINATION (#14317) 2015-02-11 15:15:33 -05:00
link-implicit-libs-full-path.rst Link libraries by full path even in implicit directories 2015-04-09 11:29:18 -04:00
main_dependency_diagnostic.rst add_custom_command: Diagnose MAIN_DEPENDENCY limitation. 2015-03-09 12:45:38 +01:00
makefile-DELETE_ON_ERROR.rst Help: Add notes for topic 'makefile-DELETE_ON_ERROR' 2015-03-31 11:33:53 -04:00
makefile-progress-improvements.rst Help: Add notes for topic 'makefile-progress-improvements' 2015-02-06 19:16:45 -05:00
mingw-compile-features.rst Help: Add notes for topic 'mingw-compile-features' 2015-03-20 09:35:59 -04:00
mingw-no-find_library-dll.rst Windows-GNU: Do not tell find_library to treat '.dll' as linkable 2015-02-18 09:40:25 -05:00
ninja-require-byproducts.rst Ninja: Add policy to require explicit custom command byproducts 2015-03-20 17:40:12 -04:00
remove-DEFINITIONS-directory-property.rst Do not treat DEFINITIONS as a built-in directory property 2015-04-02 13:00:48 -04:00
rpm_package_architecture.rst Help: Add notes for topic 'rpm_package_architecture' 2015-02-23 11:02:22 -05:00
target-language-genex.rst Help: Add release notes for target-language-genex. 2015-03-10 09:10:47 -04:00
vs-xaml.rst VS: Add support for XAML source files 2015-04-03 13:40:35 -04:00
vs7-OutputDirectory.rst VS: Use $(ConfigurationName) as CMAKE_CFG_INTDIR in VS 7, 8, 9 2015-02-16 11:48:04 -05:00
wix-shortcut-properties.rst CPackWIX: Add release notes for the wix-shortcut-properties topic. 2015-02-23 16:49:42 +01:00
xcode-attribute-genex.rst Xcode: Teach XCODE_ATTRIBUTE target properties about generator expressions 2015-02-12 13:35:31 -05:00
xcode-xctest.rst Help: Add notes for topic 'xcode-xctest' 2015-03-23 09:12:20 -04:00