summaryrefslogtreecommitdiffstats
path: root/Source/cmUtilitySourceCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-08-01 17:54:53 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-08-01 17:54:53 (GMT)
commit8b8766d246b47267d679155076fa3be8e5703558 (patch)
tree5ee3bc5164208619e2fecac225d15453b1344a2c /Source/cmUtilitySourceCommand.cxx
parentc198fa1af349ee8dc6e56e48f2bd15fd78b0f60d (diff)
downloadCMake-8b8766d246b47267d679155076fa3be8e5703558.zip
CMake-8b8766d246b47267d679155076fa3be8e5703558.tar.gz
CMake-8b8766d246b47267d679155076fa3be8e5703558.tar.bz2
fix for utility command without EXECUTABLE_OUTPUT_PATH
Diffstat (limited to 'Source/cmUtilitySourceCommand.cxx')
-rw-r--r--Source/cmUtilitySourceCommand.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmUtilitySourceCommand.cxx b/Source/cmUtilitySourceCommand.cxx
index 10cefb8..9b542dc 100644
--- a/Source/cmUtilitySourceCommand.cxx
+++ b/Source/cmUtilitySourceCommand.cxx
@@ -83,6 +83,9 @@ bool cmUtilitySourceCommand::InitialPass(std::vector<std::string> const& args)
std::string utilityExecutable =
utilityDirectory+"/"+cmakeCFGout+"/"
+utilityName+cmSystemTools::GetExecutableExtension();
+
+ // make sure we remove any /./ in the name
+ cmSystemTools::ReplaceString(utilityExecutable, "/./", "/");
// Enter the value into the cache.
m_Makefile->AddCacheDefinition(cacheEntry.c_str(),