mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'export-no-custom-target'
7e9f908eexport: Reject custom target exports earlier (#15657)3b09398aTests: Teach RunCMake.export to enable languages only when needed
This commit is contained in:
@@ -177,6 +177,12 @@ bool cmExportCommand
|
||||
this->SetError(e.str());
|
||||
return false;
|
||||
}
|
||||
if (target->GetType() == cmTarget::UTILITY)
|
||||
{
|
||||
this->SetError("given custom target \"" + *currentTarget
|
||||
+ "\" which may not be exported.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user