diff options
author | Alexey Sokolov <sokolov@google.com> | 2016-12-21 01:53:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-10 18:05:59 (GMT) |
commit | b8968b4b3984b425497324c302948a197b2badbd (patch) | |
tree | b023c600310296f87523e3b715d4d8f8823913bc /Source/cmDependsC.cxx | |
parent | 4918cd8c98938ab245d7fea74ba6e20f3ec8ef8b (diff) | |
download | CMake-b8968b4b3984b425497324c302948a197b2badbd.zip CMake-b8968b4b3984b425497324c302948a197b2badbd.tar.gz CMake-b8968b4b3984b425497324c302948a197b2badbd.tar.bz2 |
UseSWIG: Automatically scan dependencies of SWIG files for Makefiles
Issue: #4147
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r-- | Source/cmDependsC.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index e6000db..9d4b9cc 100644 --- a/Source/cmDependsC.cxx +++ b/Source/cmDependsC.cxx @@ -12,7 +12,7 @@ #include "cmSystemTools.h" #define INCLUDE_REGEX_LINE \ - "^[ \t]*#[ \t]*(include|import)[ \t]*[<\"]([^\">]+)([\">])" + "^[ \t]*[#%][ \t]*(include|import)[ \t]*[<\"]([^\">]+)([\">])" #define INCLUDE_REGEX_LINE_MARKER "#IncludeRegexLine: " #define INCLUDE_REGEX_SCAN_MARKER "#IncludeRegexScan: " @@ -420,7 +420,7 @@ void cmDependsC::SetupTransforms() if (!this->TransformRules.empty()) { // Construct the regular expression to match lines to be // transformed. - std::string xform = "^([ \t]*#[ \t]*(include|import)[ \t]*)("; + std::string xform = "^([ \t]*[#%][ \t]*(include|import)[ \t]*)("; const char* sep = ""; for (TransformRulesType::const_iterator tri = this->TransformRules.begin(); tri != this->TransformRules.end(); ++tri) { |