diff options
author | Brad King <brad.king@kitware.com> | 2001-03-15 23:09:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-03-15 23:09:16 (GMT) |
commit | be4db9150c6b3bd8a6c39d48fa693a6209c34740 (patch) | |
tree | 033cb0942c8e0b7eb43afbfaef19ec403ab56083 /Source/cmMakeDepend.cxx | |
parent | b9a8948ec879f2e6a9a2f6220bba061c44c8d4bb (diff) | |
download | CMake-be4db9150c6b3bd8a6c39d48fa693a6209c34740.zip CMake-be4db9150c6b3bd8a6c39d48fa693a6209c34740.tar.gz CMake-be4db9150c6b3bd8a6c39d48fa693a6209c34740.tar.bz2 |
ENH: Added INCLUDE_REGULAR_EXPRESSION command to set regular expression used in dependency checking.
Diffstat (limited to 'Source/cmMakeDepend.cxx')
-rw-r--r-- | Source/cmMakeDepend.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 4280442..5bd34cf 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -20,14 +20,7 @@ cmMakeDepend::cmMakeDepend() { m_Verbose = false; - m_IncludeFileRegularExpression.compile("^itk|^vtk|^vnl|^vcl|^f2c"); -} - - -// only files matching this regular expression with be considered -void cmMakeDepend::SetIncludeRegularExpression(const char* prefix) -{ - m_IncludeFileRegularExpression.compile(prefix); + m_IncludeFileRegularExpression.compile(""); } @@ -49,6 +42,10 @@ cmMakeDepend::~cmMakeDepend() void cmMakeDepend::SetMakefile(cmMakefile* makefile) { m_Makefile = makefile; + + // Now extract the include file regular expression from the makefile. + m_IncludeFileRegularExpression.compile( + m_Makefile->m_IncludeFileRegularExpression.c_str()); // Now extract any include paths from the makefile flags std::vector<std::string>& includes = m_Makefile->GetIncludeDirectories(); |