diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-07-01 14:23:16 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-07-01 14:23:16 (GMT) |
commit | d5814719d60ba3b97fa1189de49fd16f405c6ae0 (patch) | |
tree | 933c8ab733579f8d06f8310a9bfc5303765014dc | |
parent | 6a1de7f5ad2f684fdf8bfdea2a3ad982387e9a27 (diff) | |
download | CMake-d5814719d60ba3b97fa1189de49fd16f405c6ae0.zip CMake-d5814719d60ba3b97fa1189de49fd16f405c6ae0.tar.gz CMake-d5814719d60ba3b97fa1189de49fd16f405c6ae0.tar.bz2 |
ENH: added patch from Alexander Neundorf to get DEFINITIONS
-rw-r--r-- | Source/cmGetDirectoryPropertyCommand.cxx | 4 | ||||
-rw-r--r-- | Source/cmGetDirectoryPropertyCommand.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx index 04c0dbb..06302d8 100644 --- a/Source/cmGetDirectoryPropertyCommand.cxx +++ b/Source/cmGetDirectoryPropertyCommand.cxx @@ -53,6 +53,10 @@ bool cmGetDirectoryPropertyCommand::InitialPass( { m_Makefile->GetListOfMacros(output); } + else if ( args[1] == "DEFINITIONS" ) + { + output=m_Makefile->GetDefineFlags(); + } else if ( args[1] == "INCLUDE_DIRECTORIES" ) { std::vector<std::string>::iterator it; diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h index 44297e3..d7b2103 100644 --- a/Source/cmGetDirectoryPropertyCommand.h +++ b/Source/cmGetDirectoryPropertyCommand.h @@ -57,7 +57,7 @@ public: "stored in the variable VAR. If the property is not found," "CMake will report an error. The properties include: VARIABLES, " "CACHE_VARIABLES, COMMANDS, MACROS, INCLUDE_DIRECTORIES, " - "LINK_DIRECTORIES, and INCLUDE_REGULAR_EXPRESSION."; + "LINK_DIRECTORIES, DEFINITIONS and INCLUDE_REGULAR_EXPRESSION."; } cmTypeMacro(cmGetDirectoryPropertyCommand, cmCommand); |