summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-23 17:51:07 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-25 16:06:28 (GMT)
commitc54448e1855432de95844d4d0546bbe6d7f47c84 (patch)
tree1261a9650a2193a02473e675c2f457f2f3a9d323 /Source
parentdcc117b9446cfc3d6c8bf191545aac8d1519abca (diff)
downloadCMake-c54448e1855432de95844d4d0546bbe6d7f47c84.zip
CMake-c54448e1855432de95844d4d0546bbe6d7f47c84.tar.gz
CMake-c54448e1855432de95844d4d0546bbe6d7f47c84.tar.bz2
PCH: Propagate INTERFACE_PRECOMPILE_HEADERS in install(EXPORT)
This was accidentally left out of commit 0467a2f91b (PCH: add PRECOMPILE_HEADERS to special properties, 2015-03-12). Also add a test case for `install(EXPORT)` and `export()` propagation of precompiled headers. Fixes: #19741
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 0009b3a..1e843b6 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -94,6 +94,9 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
this->PopulateInterfaceProperty("INTERFACE_COMPILE_OPTIONS", gt,
cmGeneratorExpression::InstallInterface,
properties, missingTargets);
+ this->PopulateInterfaceProperty("INTERFACE_PRECOMPILE_HEADERS", gt,
+ cmGeneratorExpression::InstallInterface,
+ properties, missingTargets);
this->PopulateInterfaceProperty("INTERFACE_AUTOUIC_OPTIONS", gt,
cmGeneratorExpression::InstallInterface,
properties, missingTargets);