ENH: added patch from Alexander Neundorf to get DEFINITIONS

This commit is contained in:
Ken Martin 2005-07-01 10:23:16 -04:00
parent 6a1de7f5ad
commit d5814719d6
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,10 @@ bool cmGetDirectoryPropertyCommand::InitialPass(
{ {
m_Makefile->GetListOfMacros(output); m_Makefile->GetListOfMacros(output);
} }
else if ( args[1] == "DEFINITIONS" )
{
output=m_Makefile->GetDefineFlags();
}
else if ( args[1] == "INCLUDE_DIRECTORIES" ) else if ( args[1] == "INCLUDE_DIRECTORIES" )
{ {
std::vector<std::string>::iterator it; std::vector<std::string>::iterator it;

View File

@ -57,7 +57,7 @@ public:
"stored in the variable VAR. If the property is not found," "stored in the variable VAR. If the property is not found,"
"CMake will report an error. The properties include: VARIABLES, " "CMake will report an error. The properties include: VARIABLES, "
"CACHE_VARIABLES, COMMANDS, MACROS, INCLUDE_DIRECTORIES, " "CACHE_VARIABLES, COMMANDS, MACROS, INCLUDE_DIRECTORIES, "
"LINK_DIRECTORIES, and INCLUDE_REGULAR_EXPRESSION."; "LINK_DIRECTORIES, DEFINITIONS and INCLUDE_REGULAR_EXPRESSION.";
} }
cmTypeMacro(cmGetDirectoryPropertyCommand, cmCommand); cmTypeMacro(cmGetDirectoryPropertyCommand, cmCommand);