summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-16 18:48:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-05-16 18:48:01 (GMT)
commit5e993a2822e48c5d84b5bf01aad52ff5068cb5ea (patch)
tree5db2f08c4fa8cdd46c56fe52a28f725806aaf575 /Source
parenta052a79949d9db00cea73f45b2122a67d549a7a8 (diff)
parent33ed186fce561d274ffee1acd20c2ceb45931de4 (diff)
downloadCMake-5e993a2822e48c5d84b5bf01aad52ff5068cb5ea.zip
CMake-5e993a2822e48c5d84b5bf01aad52ff5068cb5ea.tar.gz
CMake-5e993a2822e48c5d84b5bf01aad52ff5068cb5ea.tar.bz2
Merge topic 'fix-moc-with-empty-COMPILE_DEFINITIONS'
33ed186 automoc: Read target defines unconditionally
Diffstat (limited to 'Source')
-rw-r--r--Source/cmQtAutomoc.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index 9783ce9..a468fa7 100644
--- a/Source/cmQtAutomoc.cxx
+++ b/Source/cmQtAutomoc.cxx
@@ -280,13 +280,9 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
_moc_incs += *incDirIt;
}
- const char* tmp = target->GetProperty("COMPILE_DEFINITIONS");
- std::string _moc_compile_defs;
- if (tmp)
- {
- _moc_compile_defs = target->GetCompileDefinitions(0);
- }
- tmp = makefile->GetProperty("COMPILE_DEFINITIONS");
+ std::string _moc_compile_defs = target->GetCompileDefinitions(0);
+
+ const char* tmp = makefile->GetProperty("COMPILE_DEFINITIONS");
if (tmp)
{
_moc_compile_defs += ";";