diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 5da812c032..29762b7b0b 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -2498,7 +2498,7 @@ void cmLocalUnixMakefileGenerator::OutputMakeVariables(std::ostream& fout) // CMake versions below 2.0 would add the source tree to the -I path // automatically. Preserve compatibility. const char* versionValue = - this->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); + m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); if(versionValue) { int major = 0;