summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-16 21:46:13 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-17 13:08:24 (GMT)
commit3b673586f520cf87ae6a0a923a88ad9dadb80b52 (patch)
treeeb4faa3d55bce597b88e8dfdbee5e1a108332307 /Source
parent5baa81592be69a87c10380daaa03da48c3fc729f (diff)
downloadCMake-3b673586f520cf87ae6a0a923a88ad9dadb80b52.zip
CMake-3b673586f520cf87ae6a0a923a88ad9dadb80b52.tar.gz
CMake-3b673586f520cf87ae6a0a923a88ad9dadb80b52.tar.bz2
CMP0052: Make the warning message more informative.
Print the reason for the offending entry in the INTERFACE_INCLUDE_DIRECTORIES.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportFileGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index 25ffe1a..2db4086 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -301,7 +301,10 @@ static bool checkInterfaceDirs(const std::string &prepro,
s << "Directory:\n \"" << *li << "\"\nin "
"INTERFACE_INCLUDE_DIRECTORIES of target \""
<< target->GetName() << "\" is a subdirectory of the install "
- "directory:\n \"" << installDir << "\"";
+ "directory:\n \"" << installDir << "\"\nhowever it is also "
+ "a subdirectory of the " << (inBinary ? "build" : "source")
+ << " tree:\n \"" << (inBinary ? topBinaryDir : topSourceDir)
+ << "\"" << std::endl;
target->GetMakefile()->IssueMessage(cmake::AUTHOR_WARNING,
s.str());
}