From d5814719d60ba3b97fa1189de49fd16f405c6ae0 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 1 Jul 2005 10:23:16 -0400 Subject: [PATCH] ENH: added patch from Alexander Neundorf to get DEFINITIONS --- Source/cmGetDirectoryPropertyCommand.cxx | 4 ++++ Source/cmGetDirectoryPropertyCommand.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx index 04c0dbb99..06302d80a 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::iterator it; diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h index 44297e3e5..d7b210382 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);