summaryrefslogtreecommitdiffstats
path: root/Source/cmOrderDirectories.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-07-29 18:57:00 (GMT)
committerBrad King <brad.king@kitware.com>2008-07-29 18:57:00 (GMT)
commitf8f5dde2eec468f8c2ccebabb9771b5f8d21f864 (patch)
treed7f1526bbe862f327944423cb1f3b1ebe72e3dd9 /Source/cmOrderDirectories.h
parent01d143c77b7d50424950e59ef2912de31f836de5 (diff)
downloadCMake-f8f5dde2eec468f8c2ccebabb9771b5f8d21f864.zip
CMake-f8f5dde2eec468f8c2ccebabb9771b5f8d21f864.tar.gz
CMake-f8f5dde2eec468f8c2ccebabb9771b5f8d21f864.tar.bz2
ENH: Warn when system libraries may be hidden.
We never explicitly specify system library directories in linker or runtime search paths. Furthermore, libraries in these directories are always linked by asking the linker to search for them. We need to generate a warning when explicitly specified search directories contain files that may hide the system libraries during the search.
Diffstat (limited to 'Source/cmOrderDirectories.h')
-rw-r--r--Source/cmOrderDirectories.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmOrderDirectories.h b/Source/cmOrderDirectories.h
index aa09a4e..5407733 100644
--- a/Source/cmOrderDirectories.h
+++ b/Source/cmOrderDirectories.h
@@ -54,6 +54,7 @@ private:
bool OrderedDirectoriesComputed;
std::vector<cmOrderDirectoriesConstraint*> ConstraintEntries;
+ std::vector<cmOrderDirectoriesConstraint*> ImplicitDirEntries;
std::vector<std::string> UserDirectories;
cmsys::RegularExpression RemoveLibraryExtension;
std::vector<std::string> LinkExtensions;
@@ -66,6 +67,7 @@ private:
void CollectOriginalDirectories();
int AddOriginalDirectory(std::string const& dir);
void FindConflicts();
+ void FindImplicitConflicts();
void OrderDirectories();
void VisitDirectory(unsigned int i);
void DiagnoseCycle();