summaryrefslogtreecommitdiff
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-09-18 18:22:11 +0200
committerCristian Adam <cristian.adam@gmail.com>2019-09-19 13:23:00 +0200
commit9d2ac86f45e6f05e8873a0cb3e5e61545fb7c8a7 (patch)
tree1e45d03ae0d3cfd3492af80fd0069259bd932409 /Source/cmMakefile.cxx
parent1423507a71199fd76b457ad9b215a6caca70ee58 (diff)
downloadcmake-9d2ac86f45e6f05e8873a0cb3e5e61545fb7c8a7.tar.gz
Precompile Headers: Add precompile header file to source list
The precompile header file will be added to the list of files, and be part of the newly "Precompile Header File" source group. Also make sure the sources have the header as dependency.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c59393938c..acae17a16f 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -104,6 +104,7 @@ cmMakefile::cmMakefile(cmGlobalGenerator* globalGenerator,
this->AddSourceGroup("", "^.*$");
this->AddSourceGroup("Source Files", CM_SOURCE_REGEX);
this->AddSourceGroup("Header Files", CM_HEADER_REGEX);
+ this->AddSourceGroup("Precompile Header File", CM_PCH_REGEX);
this->AddSourceGroup("CMake Rules", "\\.rule$");
this->AddSourceGroup("Resources", CM_RESOURCE_REGEX);
this->AddSourceGroup("Object Files", "\\.(lo|o|obj)$");