ENH: Converted cmMakefile DefineFlags added by ADD_DEFINITIONS command into a COMPILE_DEFINITIONS directory property.

This commit is contained in:
Brad King
2008-01-17 19:29:43 -05:00
parent caca9b8065
commit 433099ecdd
13 changed files with 222 additions and 47 deletions
+3 -6
View File
@@ -53,8 +53,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
return
"Removes -D define flags to the command line of C and C++ compilers.";
return "Removes -D define flags added by add_definitions.";
}
/**
@@ -64,10 +63,8 @@ public:
{
return
" remove_definitions(-DFOO -DBAR ...)\n"
"Removes flags from command line of C and C++ compilers. "
"This command can be used to remove any flag from a compile line, "
"but the -D flag is accepted by most C/C++ compilers. "
"Other flags may not be as portable.";
"Removes flags (added by add_definitions) from the compiler command "
"line for sources in the current directory and below.";
}
cmTypeMacro(cmRemoveDefinitionsCommand, cmCommand);