|
|
@@ -44,7 +44,8 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *,
|
|
|
const char *bindir,
|
|
|
const char *projectName,
|
|
|
const char *targetName,
|
|
|
- std::string *output)
|
|
|
+ std::string *output,
|
|
|
+ cmMakefile* mf)
|
|
|
{
|
|
|
// now build the test
|
|
|
std::string makeCommand =
|
|
|
@@ -77,10 +78,9 @@ int cmGlobalVisualStudio7Generator::TryCompile(const char *,
|
|
|
makeCommand += " ";
|
|
|
makeCommand += projectName;
|
|
|
makeCommand += ".sln /build ";
|
|
|
- if ( m_LocalGenerators[0]->GetMakefile()->GetDefinition("CMAKE_TRY_COMPILE_CONFIGURATION") )
|
|
|
+ if(const char* config = mf->GetDefinition("CMAKE_TRY_COMPILE_CONFIGURATION"))
|
|
|
{
|
|
|
- makeCommand +=
|
|
|
- m_LocalGenerators[0]->GetMakefile()->GetDefinition("CMAKE_TRY_COMPILE_CONFIGURATION");
|
|
|
+ makeCommand += config;
|
|
|
}
|
|
|
else
|
|
|
{
|