diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index f9cb55cea..7e9d25627 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -53,7 +53,11 @@ #include "cmLoadCommandCommand.cxx" #endif -void GetPredefinedCommands(std::list& commands) +void GetPredefinedCommands(std::list& +#if defined(CMAKE_BUILD_WITH_CMAKE) + commands +#endif + ) { #if defined(CMAKE_BUILD_WITH_CMAKE) commands.push_back(new cmAbstractFilesCommand);