summaryrefslogtreecommitdiff
path: root/Source/cmExportInstallFileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-01 08:56:00 -0500
committerBrad King <brad.king@kitware.com>2008-02-01 08:56:00 -0500
commit82fcaebe2804f88cfee258ab10003c34a9cee9da (patch)
tree8bb77511530f9da1e38e79ad85637cddeba77977 /Source/cmExportInstallFileGenerator.cxx
parentf28f1585f663314648e608e5f156d22d7b1e5811 (diff)
downloadcmake-82fcaebe2804f88cfee258ab10003c34a9cee9da.tar.gz
ENH: Pass dependent library search path to linker on some platforms.
- Move runtime path ordering out of cmComputeLinkInformation into its own class cmOrderRuntimeDirectories. - Create an instance of cmOrderRuntimeDirectories for runtime path ordering and another instance for dependent library path ordering. - Replace CMAKE_DEPENDENT_SHARED_LIBRARY_MODE with explicit CMAKE_LINK_DEPENDENT_LIBRARY_FILES boolean. - Create CMAKE_LINK_DEPENDENT_LIBRARY_DIRS boolean. - Create variables to specify -rpath-link flags: CMAKE_SHARED_LIBRARY_RPATH_LINK_<LANG>_FLAG CMAKE_EXECUTABLE_RPATH_LINK_<LANG>_FLAG - Enable -rpath-link flag on Linux and QNX. - Documentation and error message updates
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 14bb81682c..e3ca3afa99 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -264,16 +264,12 @@ cmExportInstallFileGenerator
//----------------------------------------------------------------------------
void
cmExportInstallFileGenerator
-::ComplainAboutMissingTarget(cmTarget* target, const char* dep)
+::ComplainAboutMissingTarget(cmTarget* depender, cmTarget* dependee)
{
cmOStringStream e;
e << "INSTALL(EXPORT \"" << this->Name << "\" ...) "
- << "includes target \"" << target->GetName()
- << "\" which links to target \"" << dep
- << "\" that is not in the export set. "
- << "If the link dependency is not part of the public interface "
- << "consider setting the LINK_INTERFACE_LIBRARIES property on "
- << "target \"" << target->GetName() << "\". "
- << "Otherwise add it to the export set.";
+ << "includes target \"" << depender->GetName()
+ << "\" which requires target \"" << depender->GetName()
+ << "\" that is not in the export set.";
cmSystemTools::Error(e.str().c_str());
}