Ninja: cmcldeps needs absolute paths for RCs
This commit is contained in:
parent
1cdeef795a
commit
74d1c88529
|
@ -469,7 +469,7 @@ cmNinjaTargetGenerator
|
||||||
cmNinjaDeps emptyDeps;
|
cmNinjaDeps emptyDeps;
|
||||||
|
|
||||||
std::string comment;
|
std::string comment;
|
||||||
const char* language = source->GetLanguage();
|
const std::string language = source->GetLanguage();
|
||||||
std::string rule = this->LanguageCompilerRule(language);
|
std::string rule = this->LanguageCompilerRule(language);
|
||||||
|
|
||||||
cmNinjaDeps outputs;
|
cmNinjaDeps outputs;
|
||||||
|
@ -479,7 +479,11 @@ cmNinjaTargetGenerator
|
||||||
this->Objects.push_back(objectFileName);
|
this->Objects.push_back(objectFileName);
|
||||||
|
|
||||||
cmNinjaDeps explicitDeps;
|
cmNinjaDeps explicitDeps;
|
||||||
std::string sourceFileName = this->GetSourceFilePath(source);
|
std::string sourceFileName;
|
||||||
|
if (language == "RC")
|
||||||
|
sourceFileName = source->GetFullPath();
|
||||||
|
else
|
||||||
|
sourceFileName = this->GetSourceFilePath(source);
|
||||||
explicitDeps.push_back(sourceFileName);
|
explicitDeps.push_back(sourceFileName);
|
||||||
|
|
||||||
// Ensure that the target dependencies are built before any source file in
|
// Ensure that the target dependencies are built before any source file in
|
||||||
|
|
Loading…
Reference in New Issue