diff options
author | Brad King <brad.king@kitware.com> | 2016-09-14 18:28:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-14 18:50:39 (GMT) |
commit | 00e78c19903c24bb7cc969f3b825b2502661f3c0 (patch) | |
tree | 7de3b40f4c5208560a5053e1a9b7ec39035e4164 /Source/cmGlobalGenerator.cxx | |
parent | 9d11bd50661a1fb0a079c7c17120273f21ea9a8c (diff) | |
download | CMake-00e78c19903c24bb7cc969f3b825b2502661f3c0.zip CMake-00e78c19903c24bb7cc969f3b825b2502661f3c0.tar.gz CMake-00e78c19903c24bb7cc969f3b825b2502661f3c0.tar.bz2 |
cmTarget: Construct with basic information up front
Avoid having partially constructed cmTarget instances around,
except for the special case of GLOBAL_TARGET construction.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 961d89d..e85d80e 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -2352,8 +2352,8 @@ cmTarget cmGlobalGenerator::CreateGlobalTarget( const char* workingDirectory, bool uses_terminal) { // Package - cmTarget target; - target.SetType(cmState::GLOBAL_TARGET, name); + cmTarget target(name, cmState::GLOBAL_TARGET, cmTarget::VisibilityNormal, + CM_NULLPTR); target.SetProperty("EXCLUDE_FROM_ALL", "TRUE"); std::vector<std::string> no_outputs; |