diff options
author | Brad King <brad.king@kitware.com> | 2022-01-24 19:11:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-29 11:48:11 (GMT) |
commit | 4e8f24e9778e4f5d69862efa109d7f8284d1a119 (patch) | |
tree | 6e461d2771cdaa21b672d2f0d6de351d08a95524 /Source/cmGeneratorTarget.h | |
parent | 854e67985e25886770b4e76546afff9567ba99f0 (diff) | |
download | CMake-4e8f24e9778e4f5d69862efa109d7f8284d1a119.zip CMake-4e8f24e9778e4f5d69862efa109d7f8284d1a119.tar.gz CMake-4e8f24e9778e4f5d69862efa109d7f8284d1a119.tar.bz2 |
PCH: Clear link interface cache when adding PCH object to it
On platforms using `CMAKE_LINK_PCH`, the implementation of
`PRECOMPILE_HEADERS_REUSE_FROM`, when re-using the PCH from one object
library in another, adds a PCH object file to the link interface.
Clear any cached link interface to ensure it is used.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 71212c4..8134087 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -664,6 +664,9 @@ public: */ void ClearSourcesCache(); + // Do not use. This is only for a specific call site with a FIXME comment. + void ClearLinkInterfaceCache(); + void AddSource(const std::string& src, bool before = false); void AddTracedSources(std::vector<std::string> const& srcs); |