mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates an
"imported" executable target. This can then be used e.g. with ADD_CUSTOM_COMMAND() to generate stuff. It adds a second container for "imported" targets, and FindTarget() now takes an additional argument bool useImportedTargets to specify whether you also want to search in the imported targets or only in the "normal" targets. Alex
This commit is contained in:
@@ -376,7 +376,7 @@ void cmInstallTargetGenerator
|
||||
{
|
||||
if(cmTarget* tgt = this->Target->GetMakefile()->
|
||||
GetLocalGenerator()->GetGlobalGenerator()->
|
||||
FindTarget(0, lib.c_str()))
|
||||
FindTarget(0, lib.c_str(), false))
|
||||
{
|
||||
if(tgt->GetType() == cmTarget::SHARED_LIBRARY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user