summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-08-22 21:52:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-08-24 13:14:56 (GMT)
commiteef6df5c7d97680f9c20729555c061cf3e2b2482 (patch)
tree853a767941f7524064f29ea928568f608c84a799 /Source/cmTarget.cxx
parent374af6529a08fc1c9c9c16e5d55929c450db6e35 (diff)
downloadCMake-eef6df5c7d97680f9c20729555c061cf3e2b2482.zip
CMake-eef6df5c7d97680f9c20729555c061cf3e2b2482.tar.gz
CMake-eef6df5c7d97680f9c20729555c061cf3e2b2482.tar.bz2
Fix OLD behavior of CMP0021.
Exclude Ninja and Xcode from the CMP0021 test They do not behave the same as the makefile generator with relative paths. Don't overwrite the header file for in-source builds.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 13cd006..ddb4e85 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3303,7 +3303,10 @@ static void processIncludeDirectories(cmTarget *tgt,
if (!noMessage)
{
tgt->GetMakefile()->IssueMessage(messageType, e.str().c_str());
- return;
+ if (messageType == cmake::FATAL_ERROR)
+ {
+ return;
+ }
}
}