summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-11-12 19:06:02 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-11-12 19:06:02 (GMT)
commit467fa9dfb3ecfb72a10b92edb8a4b53244e0562d (patch)
treefc39123c237c8820971d4c2ace79af5529e7116d /Source/cmGlobalVisualStudio7Generator.cxx
parent37149fc5b325e3c8b6558ccb4f1b793a6e04d7e9 (diff)
downloadCMake-467fa9dfb3ecfb72a10b92edb8a4b53244e0562d.zip
CMake-467fa9dfb3ecfb72a10b92edb8a4b53244e0562d.tar.gz
CMake-467fa9dfb3ecfb72a10b92edb8a4b53244e0562d.tar.bz2
ENH: Bug #371 - Add build configuration for try compiles using cmake variable
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 11032ce..5435190 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -75,7 +75,17 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *,
#endif
makeCommand += " ";
makeCommand += projectName;
- makeCommand += ".sln /build Debug /project ";
+ makeCommand += ".sln /build ";
+ if ( m_LocalGenerators[0]->GetMakefile()->GetDefinition("CMAKE_TRY_COMPILE_CONFIGURATION") )
+ {
+ makeCommand +=
+ m_LocalGenerators[0]->GetMakefile()->GetDefinition("CMAKE_TRY_COMPILE_CONFIGURATION");
+ }
+ else
+ {
+ makeCommand += "Debug";
+ }
+ makeCommand += " /project ";
if (targetName)
{
makeCommand += targetName;