From 1a91ac4d0dd9bb7eac960a2058fd26f0646b4f50 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Thu, 10 Mar 2011 21:43:02 +0100 Subject: [PATCH 1/2] Remove trailing whitespace Alex --- Source/cmUseMangledMesaCommand.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/cmUseMangledMesaCommand.h b/Source/cmUseMangledMesaCommand.h index 141995dd9..887200fe8 100644 --- a/Source/cmUseMangledMesaCommand.h +++ b/Source/cmUseMangledMesaCommand.h @@ -30,7 +30,7 @@ public: /** * This is a virtual constructor for the command. */ - virtual cmCommand* Clone() + virtual cmCommand* Clone() { return new cmUseMangledMesaCommand; } @@ -41,7 +41,7 @@ public: */ virtual bool InitialPass(std::vector const& args, cmExecutionStatus &status); - + /** * The name of the command as specified in CMakeList.txt. */ @@ -50,11 +50,11 @@ public: /** * Succinct documentation. */ - virtual const char* GetTerseDocumentation() + virtual const char* GetTerseDocumentation() { return "Copy mesa headers for use in combination with system GL."; } - + /** * More documentation. */ @@ -80,5 +80,4 @@ protected: }; - #endif From 968d5a0ff17f13867472c857fcbda688d855857c Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Thu, 10 Mar 2011 21:44:02 +0100 Subject: [PATCH 2/2] Make use_mangled_mesa() available in cmake script mode (#11926) There is nothing in it which speaks against this. Alex --- Source/cmUseMangledMesaCommand.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmUseMangledMesaCommand.h b/Source/cmUseMangledMesaCommand.h index 887200fe8..fec2265ed 100644 --- a/Source/cmUseMangledMesaCommand.h +++ b/Source/cmUseMangledMesaCommand.h @@ -68,6 +68,11 @@ public: "being added to the include directory path earlier."; } + /** + * This determines if the command is invoked when in script mode. + */ + virtual bool IsScriptable() { return true; } + /** This command is kept for compatibility with older CMake versions. */ virtual bool IsDiscouraged() {