diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-02 11:49:19 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 07:14:13 (GMT) |
commit | 03878c9a22719eb8e86025c3cb489af8fd47a250 (patch) | |
tree | 90df89dc4d8ba837f6417b1570edc3657fd319aa /Source | |
parent | be23dcfeb1ef2d855bd24bb933ae7da4a6b4b9da (diff) | |
download | CMake-03878c9a22719eb8e86025c3cb489af8fd47a250.zip CMake-03878c9a22719eb8e86025c3cb489af8fd47a250.tar.gz CMake-03878c9a22719eb8e86025c3cb489af8fd47a250.tar.bz2 |
Move variable set to where it is used.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index ee30987..7e61772 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -206,8 +206,6 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) cmMakefile* makefile = target->GetMakefile(); const char* targetName = target->GetName(); - bool relaxedMode = makefile->IsOn("CMAKE_AUTOMOC_RELAXED_MODE"); - // create a custom target for running automoc at buildtime: std::string automocTargetName = targetName; automocTargetName += "_automoc"; @@ -338,6 +336,7 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) cmLocalGenerator::EscapeForCMake(_moc_files.c_str()).c_str()); makefile->AddDefinition("_moc_headers", cmLocalGenerator::EscapeForCMake(_moc_headers.c_str()).c_str()); + bool relaxedMode = makefile->IsOn("CMAKE_AUTOMOC_RELAXED_MODE"); makefile->AddDefinition("_moc_relaxed_mode", relaxedMode ? "TRUE" : "FALSE"); std::string _moc_incs; |