diff --git a/Source/cmGetCMakePropertyCommand.cxx b/Source/cmGetCMakePropertyCommand.cxx index 76803c103..61cf85b8e 100644 --- a/Source/cmGetCMakePropertyCommand.cxx +++ b/Source/cmGetCMakePropertyCommand.cxx @@ -32,8 +32,7 @@ bool cmGetCMakePropertyCommand if ( args[1] == "VARIABLES" ) { - int cacheonly = 0; - std::vector vars = this->Makefile->GetDefinitions(cacheonly); + std::vector vars = this->Makefile->GetDefinitions(); if (!vars.empty()) { output = cmJoin(vars, ";");