summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.h
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2024-07-04 20:36:37 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2024-07-18 16:08:43 (GMT)
commita6cc595772abe06d7aa6769bfbe525031de42d28 (patch)
tree44426707dfd33a93bbfe85ba808380698a629cd4 /Source/cmExportFileGenerator.h
parent0352376e4493b132cd7a8895e7e3aadaf99d73c7 (diff)
downloadCMake-a6cc595772abe06d7aa6769bfbe525031de42d28.zip
CMake-a6cc595772abe06d7aa6769bfbe525031de42d28.tar.gz
CMake-a6cc595772abe06d7aa6769bfbe525031de42d28.tar.bz2
export: Factor out CMake-specific export generation (1/2)
In order to support generation of Common Package Specifications, the mechanisms CMake uses to export package information need to be made more abstract. As a first step toward this, refactor cmInstallExportGenerator so that logic specific to config.cmake and Android .mk lives in separate subclasses. While we're at it, clean up the code style a bit and try to use moves a bit more consistently. This is step 1 of 2. The next step will refactor the individual file generators along similar lines, which will also involve creating additional classes for format-agnostic logic that is shared between build-tree and install-tree variants.
Diffstat (limited to 'Source/cmExportFileGenerator.h')
-rw-r--r--Source/cmExportFileGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.h b/Source/cmExportFileGenerator.h
index f275a12..fe3f533 100644
--- a/Source/cmExportFileGenerator.h
+++ b/Source/cmExportFileGenerator.h
@@ -207,6 +207,8 @@ protected:
virtual cmExportSet* GetExportSet() const { return nullptr; }
+ std::string GetCxxModuleFile(std::string const& name) const;
+
void SetRequiredCMakeVersion(unsigned int major, unsigned int minor,
unsigned int patch);