diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-20 20:26:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-20 20:26:51 (GMT) |
commit | 27617df8b032a3c70cc88b403dcf7d650d474ae4 (patch) | |
tree | 7e926552fc0c764a8a05ea15d10007a05530ee5d /Source/cmaketest.cxx | |
parent | 6108756fbc5c930024b89da499b481599d58cc08 (diff) | |
download | CMake-27617df8b032a3c70cc88b403dcf7d650d474ae4.zip CMake-27617df8b032a3c70cc88b403dcf7d650d474ae4.tar.gz CMake-27617df8b032a3c70cc88b403dcf7d650d474ae4.tar.bz2 |
close to dot net working
Diffstat (limited to 'Source/cmaketest.cxx')
-rw-r--r-- | Source/cmaketest.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index 707f183..eeefdc3 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -124,6 +124,7 @@ int main (int argc, char *argv[]) cmSystemTools::LowerCase(lowerCaseCommand); // if msdev is the make program then do the following + // MSDEV 6.0 if(lowerCaseCommand.find("msdev") != std::string::npos) { // if there are spaces in the makeCommand, assume a full path @@ -145,6 +146,24 @@ int main (int argc, char *argv[]) makeCommand += projectName; makeCommand += ".dsw /MAKE \"ALL_BUILD - Debug\" /REBUILD"; } + // MSDEV 7.0 .NET + else if (lowerCaseCommand.find("devenv") != std::string::npos) + { + if(makeCommand.find(' ') != std::string::npos) + { + char *buffer = new char[makeCommand.size()+1]; + if(GetShortPathName(makeCommand.c_str(), buffer, + makeCommand.size()+1) != 0) + { + makeCommand = buffer; + } + delete [] buffer;\ + } + makeCommand += " "; + makeCommand += projectName; + makeCommand += ".sln /rebuild Debug /project ALL_BUILD"; + } + // command line make program else { // assume a make sytle program |