mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user