summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-20 11:57:25 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-21 08:12:22 (GMT)
commitaa6674831c3ea3bf3cca7c9f667d2e5c75873a3d (patch)
tree9c0f02df2afec8a1f7f92ef2b387685b07944f94
parentd70204a86aa3e454e73049efda3e1ccea8c60720 (diff)
downloadCMake-aa6674831c3ea3bf3cca7c9f667d2e5c75873a3d.zip
CMake-aa6674831c3ea3bf3cca7c9f667d2e5c75873a3d.tar.gz
CMake-aa6674831c3ea3bf3cca7c9f667d2e5c75873a3d.tar.bz2
Specify the target whose includes are being listed.
-rw-r--r--Source/cmTarget.cxx4
-rw-r--r--Tests/RunCMake/include_directories/DebugIncludes-stderr.txt8
2 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index fb99b4a..6c9ed1b 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2785,8 +2785,8 @@ std::vector<std::string> cmTarget::GetIncludeDirectories(const char *config)
if (!usedIncludes.empty())
{
this->Makefile->GetCMakeInstance()->IssueMessage(cmake::LOG,
- "Used includes:\n" + usedIncludes,
- (*it)->ge->GetBacktrace());
+ "Used includes for target " + this->Name + ":\n"
+ + usedIncludes, (*it)->ge->GetBacktrace());
}
}
return includes;
diff --git a/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt b/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt
index ab99784..379174a 100644
--- a/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt
+++ b/Tests/RunCMake/include_directories/DebugIncludes-stderr.txt
@@ -1,5 +1,5 @@
CMake Warning at DebugIncludes.cmake:8 \(include_directories\):
- Used includes:
+ Used includes for target lll:
\* .*/Tests/RunCMake/include_directories/one
\* .*/Tests/RunCMake/include_directories/two
@@ -8,7 +8,7 @@ Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
+
CMake Warning at DebugIncludes.cmake:13 \(set_property\):
- Used includes:
+ Used includes for target lll:
\* .*/Tests/RunCMake/include_directories/three
@@ -16,7 +16,7 @@ Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
+
CMake Warning at DebugIncludes.cmake:18 \(include_directories\):
- Used includes:
+ Used includes for target lll:
\* .*/Tests/RunCMake/include_directories/four
@@ -24,7 +24,7 @@ Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
+
CMake Warning at DebugIncludes.cmake:25 \(set_property\):
- Used includes:
+ Used includes for target lll:
\* .*/Tests/RunCMake/include_directories/five
\* .*/Tests/RunCMake/include_directories/six