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/cmExportTryCompileFileGenerator.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/cmExportTryCompileFileGenerator.cxx')
-rw-r--r-- | Source/cmExportTryCompileFileGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.cxx b/Source/cmExportTryCompileFileGenerator.cxx index a0aefb8..6c31481 100644 --- a/Source/cmExportTryCompileFileGenerator.cxx +++ b/Source/cmExportTryCompileFileGenerator.cxx @@ -77,9 +77,8 @@ std::string cmExportTryCompileFileGenerator::FindTargets( CM_AUTO_PTR<cmCompiledGeneratorExpression> cge = ge.Parse(prop); - cmTarget dummyHead; - dummyHead.SetType(cmState::EXECUTABLE, "try_compile_dummy_exe"); - dummyHead.SetMakefile(tgt->Target->GetMakefile()); + cmTarget dummyHead("try_compile_dummy_exe", cmState::EXECUTABLE, + cmTarget::VisibilityNormal, tgt->Target->GetMakefile()); cmGeneratorTarget gDummyHead(&dummyHead, tgt->GetLocalGenerator()); |