summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetPrecompileHeadersCommand.h
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-09-19 21:56:31 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-23 15:13:13 (GMT)
commitacb9511044a230126289c1e99cfed134c3be3c52 (patch)
tree4beb957a681b2baa9095c4f18f0254fbb29555d9 /Source/cmTargetPrecompileHeadersCommand.h
parentebb9346490741ddc2ce6f552bc1be57dfc730cfa (diff)
downloadCMake-acb9511044a230126289c1e99cfed134c3be3c52.zip
CMake-acb9511044a230126289c1e99cfed134c3be3c52.tar.gz
CMake-acb9511044a230126289c1e99cfed134c3be3c52.tar.bz2
Precompile headers: Treat headers as relative to current source directory
Teach `target_precompile_headers` to treat relative paths the same way as `target_sources`. Fixes: #19733
Diffstat (limited to 'Source/cmTargetPrecompileHeadersCommand.h')
-rw-r--r--Source/cmTargetPrecompileHeadersCommand.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmTargetPrecompileHeadersCommand.h b/Source/cmTargetPrecompileHeadersCommand.h
index 7e4558e..00dc928 100644
--- a/Source/cmTargetPrecompileHeadersCommand.h
+++ b/Source/cmTargetPrecompileHeadersCommand.h
@@ -28,6 +28,11 @@ public:
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) override;
+protected:
+ void HandleInterfaceContent(cmTarget* tgt,
+ const std::vector<std::string>& content,
+ bool prepend, bool system) override;
+
private:
void HandleMissingTarget(const std::string& name) override;
@@ -36,6 +41,10 @@ private:
bool prepend, bool system) override;
std::string Join(const std::vector<std::string>& content) override;
+
+ std::vector<std::string> ConvertToAbsoluteContent(
+ cmTarget* tgt, const std::vector<std::string>& content,
+ bool isInterfaceContent);
};
#endif