diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-11-19 21:47:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-03 18:45:40 (GMT) |
commit | 18a3195ad57cafd06851ecf4cb7265cab95cfa38 (patch) | |
tree | cf7c122414198cdcada824f567f1b3c6bec7c00f /Source/cmMakefileIncludeDirectoriesEntry.h | |
parent | 76ea420fb9a8ceada0e806f1201230e5a7c1202c (diff) | |
download | CMake-18a3195ad57cafd06851ecf4cb7265cab95cfa38.zip CMake-18a3195ad57cafd06851ecf4cb7265cab95cfa38.tar.gz CMake-18a3195ad57cafd06851ecf4cb7265cab95cfa38.tar.bz2 |
Keep track of INCLUDE_DIRECTORIES as a vector of structs.
The struct can keep track of where the include came from, which gives
us proper backtraces.
Diffstat (limited to 'Source/cmMakefileIncludeDirectoriesEntry.h')
-rw-r--r-- | Source/cmMakefileIncludeDirectoriesEntry.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/cmMakefileIncludeDirectoriesEntry.h b/Source/cmMakefileIncludeDirectoriesEntry.h new file mode 100644 index 0000000..f35642d --- /dev/null +++ b/Source/cmMakefileIncludeDirectoriesEntry.h @@ -0,0 +1,28 @@ +/*============================================================================ + CMake - Cross Platform Makefile Generator + Copyright 2012 Stephen Kelly <steveire@gmail.com> + + Distributed under the OSI-approved BSD License (the "License"); + see accompanying file Copyright.txt for details. + + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License for more information. +============================================================================*/ + +#ifndef cmMakefileIncludeDirectoriesEntry_h +#define cmMakefileIncludeDirectoriesEntry_h + +#include <string> +#include "cmListFileCache.h" + +struct cmMakefileIncludeDirectoriesEntry { + cmMakefileIncludeDirectoriesEntry(const std::string &value, + const cmListFileBacktrace &bt) + : Value(value), Backtrace(bt) + {} + std::string Value; + cmListFileBacktrace Backtrace; +}; + +#endif |