summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-22 13:53:26 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-22 13:53:26 (GMT)
commitc9d16defb061f86de2ea8e041aa453e9f7581ab0 (patch)
tree87fa6d8eba780d0fa7aa5bbc1639a9a6059ef825 /Source/cmGlobalVisualStudio7Generator.cxx
parentf7ec3c2a7670c2a1da7c9cae6ba77b963c595cf3 (diff)
downloadCMake-c9d16defb061f86de2ea8e041aa453e9f7581ab0.zip
CMake-c9d16defb061f86de2ea8e041aa453e9f7581ab0.tar.gz
CMake-c9d16defb061f86de2ea8e041aa453e9f7581ab0.tar.bz2
some try compile fixes
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx21
1 files changed, 16 insertions, 5 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index bd2adb3..d149064 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -43,7 +43,8 @@ void cmGlobalVisualStudio7Generator::EnableLanguage(const char*,
int cmGlobalVisualStudio7Generator::TryCompile(const char *,
const char *bindir,
const char *projectName,
- const char *targetName)
+ const char *targetName,
+ std::string *output)
{
// now build the test
std::string makeCommand =
@@ -61,8 +62,6 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *,
/**
* Run an executable command and put the stdout in output.
*/
- std::string output;
-
std::string cwd = cmSystemTools::GetCurrentWorkingDirectory();
cmSystemTools::ChangeDirectory(bindir);
@@ -77,7 +76,7 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *,
#endif
makeCommand += " ";
makeCommand += projectName;
- makeCommand += ".sln /rebuild Debug /project ";
+ makeCommand += ".sln /build Debug /project ";
if (targetName)
{
makeCommand += targetName;
@@ -88,7 +87,8 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *,
}
int retVal;
- if (!cmSystemTools::RunCommand(makeCommand.c_str(), output, retVal))
+ if (!cmSystemTools::RunCommand(makeCommand.c_str(), *output, retVal,
+ 0, false))
{
cmSystemTools::Error("Generator: execution of devenv failed.");
// return to the original directory
@@ -571,3 +571,14 @@ std::string cmGlobalVisualStudio7Generator::CreateGUID(const char* name)
return ret;
}
+void cmGlobalVisualStudio7Generator::LocalGenerate()
+{
+ // load the possible configuraitons
+ this->GenerateConfigurations();
+ this->cmGlobalGenerator::LocalGenerate();
+}
+
+std::vector<std::string> *cmGlobalVisualStudio7Generator::GetConfigurations()
+{
+ return &m_Configurations;
+};