summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index f9cb55c..7e9d256 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -53,7 +53,11 @@
#include "cmLoadCommandCommand.cxx"
#endif
-void GetPredefinedCommands(std::list<cmCommand*>& commands)
+void GetPredefinedCommands(std::list<cmCommand*>&
+#if defined(CMAKE_BUILD_WITH_CMAKE)
+ commands
+#endif
+ )
{
#if defined(CMAKE_BUILD_WITH_CMAKE)
commands.push_back(new cmAbstractFilesCommand);