diff options
author | Brad King <brad.king@kitware.com> | 2008-03-13 20:23:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-13 20:23:18 (GMT) |
commit | d46ff28ac9465969f9fda862d06a048fa40d72f6 (patch) | |
tree | bb5b3d71a485922116b9164197e129c3d280e5ae /Source/cmDocumentVariables.cxx | |
parent | af55f854d4f8fa8bc336dcb492c0dbe5ca9a1c92 (diff) | |
download | CMake-d46ff28ac9465969f9fda862d06a048fa40d72f6.zip CMake-d46ff28ac9465969f9fda862d06a048fa40d72f6.tar.gz CMake-d46ff28ac9465969f9fda862d06a048fa40d72f6.tar.bz2 |
ENH: Convert CMAKE_LINK_OLD_PATHS to policy CMP0003.
- Policy is WARN by default so projects will build
as they did in 2.4 without user intervention
- Remove CMAKE_LINK_OLD_PATHS variable since it was
never in a release and the policy supercedes it
- Report target creation backtrace in warning message
since policy should be set by that point
Diffstat (limited to 'Source/cmDocumentVariables.cxx')
-rw-r--r-- | Source/cmDocumentVariables.cxx | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx index ca1b0f2..a644749 100644 --- a/Source/cmDocumentVariables.cxx +++ b/Source/cmDocumentVariables.cxx @@ -784,24 +784,6 @@ void cmDocumentVariables::DefineVariables(cmake* cm) "This is needed only on very few platforms.", false, "Variables that Control the Build"); cm->DefineProperty - ("CMAKE_LINK_OLD_PATHS", cmProperty::VARIABLE, - "Enable linker search path compatibility mode.", - "This option enables linking compatibility mode for broken projects. " - "There exists code that effectively does\n" - " target_link_libraries(myexe /path/to/libA.so -lB)\n" - "where -lB is meant to link to /path/to/libB.so. This is broken " - "because it specifies -lB without adding \"/path/to\" to the linker " - "search path with the link_directories command. With CMake 2.4 and " - "below the code worked accidentally because \"/path/to\" would be " - "added to the linker search path by its implementation of linking to " - "/path/to/libA.so (which passed -L/path/to -lA to the linker). " - "This option tells CMake to add the directories containing libraries " - "specified with a full path to the linker search path if the link " - "line contains any items like -lB. " - "The behavior is also enabled if CMAKE_BACKWARDS_COMPATIBILITY is " - "set to 2.4 or lower.", false, - "Variables that Control the Build"); - cm->DefineProperty ("CMAKE_USE_RELATIVE_PATHS", cmProperty::VARIABLE, "Use relative paths (May not work!).", "If this is set to TRUE, then the CMake will use " |