summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-25 19:22:22 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-05-25 19:22:22 (GMT)
commitf4eb541880bfc89456e26d8b3eb62ec590571da5 (patch)
tree4e549a05db829d9e7fd3324e3f687e0aa2499c65 /Source/cmFileCommand.cxx
parent1ed238c7f5f1e2573beb864ea7b2b0c5be4508f2 (diff)
downloadCMake-f4eb541880bfc89456e26d8b3eb62ec590571da5.zip
CMake-f4eb541880bfc89456e26d8b3eb62ec590571da5.tar.gz
CMake-f4eb541880bfc89456e26d8b3eb62ec590571da5.tar.bz2
ENH: make the compiler id detection work, even if the output file name of
the compiler is completely unknown and even if it produces intel hex or motorola s-record files, with test Alex
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index ed3ac2c..5b3390d 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -15,6 +15,8 @@
=========================================================================*/
#include "cmFileCommand.h"
+#include "cmake.h"
+#include "cmHexFileConverter.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -414,6 +416,14 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
return false;
}
}
+
+ std::string binaryFileName = this->Makefile->GetCurrentOutputDirectory();
+ binaryFileName += cmake::GetCMakeFilesDirectory();
+ binaryFileName += "/FileCommandStringsBinaryFile";
+ if (cmHexFileConverter::TryConvert(fileName.c_str(), binaryFileName.c_str()))
+ {
+ fileName = binaryFileName;
+ }
// Open the specified file.
#if defined(_WIN32) || defined(__CYGWIN__)