From 9c48804b6917007fb7f9d0b8c137810b3b864256 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 22 May 2020 10:01:08 -0400 Subject: 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 `_` suffix that can now appear on their name. --- Source/cmSourceFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index e527069..e2dfdc1 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)$" -- cgit v0.12