[cmake-developers] [PATCH] Use full path for all source files in ninja build.
Chaoren Lin
aoe at google.com
Fri Jul 29 17:44:52 EDT 2016
From: Chaoren Lin <chaorenl at google.com>
Relative paths are difficult for an IDE to parse the output of
a build error.
---
Source/cmNinjaTargetGenerator.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 855a243..7849c5e 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -529,8 +529,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
cmSourceFile const* source, bool writeOrderDependsTargetForTarget)
{
std::string const language = source->GetLanguage();
- std::string const sourceFileName =
- language == "RC" ? source->GetFullPath() : this->GetSourceFilePath(source);
+ std::string const sourceFileName = source->GetFullPath();
std::string const objectDir =
this->ConvertToNinjaPath(this->GeneratorTarget->GetSupportDirectory());
std::string const objectFileName =
--
2.8.0.rc3.226.g39d4020
More information about the cmake-developers
mailing list