summaryrefslogtreecommitdiff
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-22 10:01:08 -0400
committerBrad King <brad.king@kitware.com>2020-05-22 10:06:05 -0400
commit9c48804b6917007fb7f9d0b8c137810b3b864256 (patch)
tree6e18363dd778364cd37c70e02ef7a50f86d7408a /Source/cmSourceFile.h
parent6556e587efa8ad954126137c6ca867f1f2797b11 (diff)
downloadcmake-9c48804b6917007fb7f9d0b8c137810b3b864256.tar.gz
PCH: Fix source group of per-architecture PCH headers
In commit f593b354da (PCH: Add support for multi architecture iOS projects, 2020-04-02) we forgot to update our regex that assigns PCH headers to the `Precompile Header File` source group to account for the `_<arch>` suffix that can now appear on their name.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index e527069afc..e2dfdc18e6 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -159,7 +159,7 @@ private:
"\\.(C|F|M|c|c\\+\\+|cc|cpp|cxx|cu|f|f90|for|fpp|ftn|m|mm|" \
"rc|def|r|odl|idl|hpj|bat)$"
-#define CM_PCH_REGEX "cmake_pch\\.(h|hxx)$"
+#define CM_PCH_REGEX "cmake_pch(_[^.]+)?\\.(h|hxx)$"
#define CM_RESOURCE_REGEX "\\.(pdf|plist|png|jpeg|jpg|storyboard|xcassets)$"