Просмотр исходного кода

ENH: added patch from Alexander Neundorf to get DEFINITIONS

Ken Martin 20 лет назад
Родитель
Сommit
d5814719d6

+ 4 - 0
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;

+ 1 - 1
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);