summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-03-28 12:51:14 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-28 12:59:14 (GMT)
commit9a2c60eb836ae26a2cd47f3c21a810047b695db9 (patch)
tree9340b95dcb1181499f990069992a1f3900ee452d /Source/cmSourceFile.h
parent1c489923d54592dfdd0a9421f585bb45ccf9aa44 (diff)
downloadCMake-9a2c60eb836ae26a2cd47f3c21a810047b695db9.zip
CMake-9a2c60eb836ae26a2cd47f3c21a810047b695db9.tar.gz
CMake-9a2c60eb836ae26a2cd47f3c21a810047b695db9.tar.bz2
Classify known header file extensions as headers
Commit 328c0f65 (Simplify cmVisualStudio10TargetGenerator source classification, 2012-03-19) introduced the first use of source classification from cmGeneratorTarget (which originated as Makefile generator logic) in a Visual Studio generator for handling of header files. Fix classification of header files to match known header extensions instead of only the HEADER_FILE_ONLY property. Make it consistent with the "Header Files" source group.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 55147e1..ae01274 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -116,4 +116,7 @@ private:
std::vector<std::string> Depends;
};
+// TODO: Factor out into platform information modules.
+#define CM_HEADER_REGEX "\\.(h|hh|h\\+\\+|hm|hpp|hxx|in|txx|inl)$"
+
#endif