mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 10:00:12 -05:00
Merge topic 'target-transitive-sources'
9407174btarget_sources: New command to add sources to target.81ad69e0Make the SOURCES target property writable.6e636f2ecmTarget: Make the SOURCES origin tracable.3676fb49cmTarget: Allow transitive evaluation of SOURCES property.e6971df6cmTarget: Make the source files depend on the config.df753df9cmGeneratorTarget: Don't add computed sources to the target.869328aacmComputeTargetDepends: Use valid config to compute target depends.
This commit is contained in:
@@ -200,7 +200,8 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
||||
continue;
|
||||
}
|
||||
std::vector<cmSourceFile const*> objectSources;
|
||||
gt->GetObjectSources(objectSources);
|
||||
gt->GetObjectSources(objectSources, this->Makefile
|
||||
->GetSafeDefinition("CMAKE_BUILD_TYPE"));
|
||||
// Compute full path to object file directory for this target.
|
||||
std::string dir;
|
||||
dir += gt->Makefile->GetCurrentOutputDirectory();
|
||||
@@ -1262,7 +1263,8 @@ cmLocalUnixMakefileGenerator3
|
||||
{
|
||||
// Get the set of source languages in the target.
|
||||
std::set<std::string> languages;
|
||||
target.GetLanguages(languages);
|
||||
target.GetLanguages(languages,
|
||||
this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE"));
|
||||
fout << "\n"
|
||||
<< "# Per-language clean rules from dependency scanning.\n"
|
||||
<< "foreach(lang";
|
||||
|
||||
Reference in New Issue
Block a user