summaryrefslogtreecommitdiffstats
path: root/Source/cmUtilitySourceCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-08 23:24:47 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-08 23:24:47 (GMT)
commit4f59f98b708e7ff7c65857809c76231e58b94e6f (patch)
tree32ba5d70ad2faa3601e1020b3211742cb76223d8 /Source/cmUtilitySourceCommand.cxx
parent1b6afc5c53d29a97dd386d32f0ab1adf70315a24 (diff)
downloadCMake-4f59f98b708e7ff7c65857809c76231e58b94e6f.zip
CMake-4f59f98b708e7ff7c65857809c76231e58b94e6f.tar.gz
CMake-4f59f98b708e7ff7c65857809c76231e58b94e6f.tar.bz2
ERR: Replaced CMAKE_CFG= with CMAKE_CFG_OUTDIR= to fix windows behavior.
Diffstat (limited to 'Source/cmUtilitySourceCommand.cxx')
-rw-r--r--Source/cmUtilitySourceCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmUtilitySourceCommand.cxx b/Source/cmUtilitySourceCommand.cxx
index 0a8c9b7..32506d0 100644
--- a/Source/cmUtilitySourceCommand.cxx
+++ b/Source/cmUtilitySourceCommand.cxx
@@ -62,10 +62,10 @@ bool cmUtilitySourceCommand::Invoke(std::vector<std::string>& args)
// The source exists. Construct the cache entry for the executable's
// location.
- std::string cmakeCFG = m_Makefile->GetDefinition("CMAKE_CFG");
+ std::string cmakeCFGout = m_Makefile->GetDefinition("CMAKE_CFG_OUTDIR");
std::string utilityExecutable = m_Makefile->GetCurrentOutputDirectory();
utilityExecutable =
- (utilityExecutable+"/"+relativeSource+"/"+cmakeCFG+"/"
+ (utilityExecutable+"/"+relativeSource+"/"+cmakeCFGout+"/"
+utilityName+cmSystemTools::GetExecutableExtension());
// Enter the value into the cache.