summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorInitializer.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-11-30 16:47:16 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2016-12-06 14:59:27 (GMT)
commit69871e67e3b0612d7df8cc3ecf4a631850935e48 (patch)
tree345ab86345094e6afafee9c22175cab0a74748ec /Source/cmQtAutoGeneratorInitializer.cxx
parent9360e288168b850223285d1fbd695abd33cf26eb (diff)
downloadCMake-69871e67e3b0612d7df8cc3ecf4a631850935e48.zip
CMake-69871e67e3b0612d7df8cc3ecf4a631850935e48.tar.gz
CMake-69871e67e3b0612d7df8cc3ecf4a631850935e48.tar.bz2
QtAutogen: Comments
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index b150d88..76af466 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -681,6 +681,7 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
qtMajorVersion = makefile->GetSafeDefinition("Qt5Core_VERSION_MAJOR");
}
+ // Initialize autogen target dependencies
std::vector<std::string> depends;
if (const char* autogenDepends =
target->GetProperty("AUTOGEN_TARGET_DEPENDS")) {
@@ -737,6 +738,8 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
// https://connect.microsoft.com/VisualStudio/feedback/details/769495
usePRE_BUILD = vsgg->GetVersion() >= cmGlobalVisualStudioGenerator::VS7;
if (usePRE_BUILD) {
+ // If the autogen target depends on an other target
+ // don't use PRE_BUILD
for (std::vector<std::string>::iterator it = depends.begin();
it != depends.end(); ++it) {
if (!makefile->FindTargetToUse(it->c_str())) {