diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-25 17:03:51 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-30 06:28:31 (GMT) |
commit | 5edb3354854bd2de4f9ea0e2c4af4069f46a4830 (patch) | |
tree | e53fccb422a5056fa070010a346a3b97b886034d /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | ff1019bfac1380681989242fa904c2d9fe13fd38 (diff) | |
download | CMake-5edb3354854bd2de4f9ea0e2c4af4069f46a4830.zip CMake-5edb3354854bd2de4f9ea0e2c4af4069f46a4830.tar.gz CMake-5edb3354854bd2de4f9ea0e2c4af4069f46a4830.tar.bz2 |
cmGlobalGenerator: Virtualize the Compute step and override it.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index a147eb3..2f9d79a 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -64,8 +64,13 @@ std::string cmGlobalVisualStudioGenerator::GetRegistryBase( } //---------------------------------------------------------------------------- -void cmGlobalVisualStudioGenerator::Generate() +bool cmGlobalVisualStudioGenerator::Compute() { + if (!cmGlobalGenerator::Compute()) + { + return false; + } + // Add a special target that depends on ALL projects for easy build // of one configuration only. const char* no_working_dir = 0; @@ -136,9 +141,7 @@ void cmGlobalVisualStudioGenerator::Generate() static_cast<cmLocalVisualStudioGenerator*>(*lgi); lg->AddCMakeListsRules(); } - - // Run all the local generators. - this->cmGlobalGenerator::Generate(); + return true; } //---------------------------------------------------------------------------- |