[cmake-commits] alex committed cmMarkAsAdvancedCommand.h 1.9 1.10
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jun 13 10:54:31 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv24337
Modified Files:
cmMarkAsAdvancedCommand.h
Log Message:
BUG: make MARK_AS_ADVANCED() scriptable, because this is the only reason
many cmake FindXXX.cmake modules can't be used in script mode and also
FindUnixMake.cmake, which is required by the CTEST_BUILD() command
Alex
Index: cmMarkAsAdvancedCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMarkAsAdvancedCommand.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- cmMarkAsAdvancedCommand.h 17 Nov 2005 14:31:43 -0000 1.9
+++ cmMarkAsAdvancedCommand.h 13 Jun 2007 14:54:28 -0000 1.10
@@ -69,9 +69,18 @@
"If FORCE is the first argument, then the variable is made advanced. "
"If neither FORCE nor CLEAR is specified, new values will be marked as "
"advanced, but if the variable already has an advanced/non-advanced "
- "state, it will not be changed.";
+ "state, it will not be changed.\n"
+ "It does nothing in script mode.";
}
-
+
+ /**
+ * This determines if the command is invoked when in script mode.
+ * MARK_AS_ADVANCED() will have no effect in script mode, but this will
+ * make many of the modules usable in cmake/ctest scripts, (among them
+ * FindUnixMake.cmake used by the CTEST_BUILD command.
+ */
+ virtual bool IsScriptable() { return true; }
+
cmTypeMacro(cmMarkAsAdvancedCommand, cmCommand);
};
More information about the Cmake-commits
mailing list