diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-22 22:13:55 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-28 13:13:48 (GMT) |
commit | c5b56b35c264664e897a2895e2561a5fb8287703 (patch) | |
tree | 74a2c0c2524178f8b0e60832a595500be29762e6 /Source/cmInstallExportGenerator.h | |
parent | c107760417d5941202713fbaaa3e25e62d1dd12e (diff) | |
download | CMake-c5b56b35c264664e897a2895e2561a5fb8287703.zip CMake-c5b56b35c264664e897a2895e2561a5fb8287703.tar.gz CMake-c5b56b35c264664e897a2895e2561a5fb8287703.tar.bz2 |
cmInstallExportGenerator: expose the temporary directory
This needs to be known so that C++ module properties for the install can
be staged beside the other files.
Always perform the MD5 transformation (in non-bootstrap builds) so that
the path can be computed prior to generation (where it used the longest
configuration name to detect too-long paths). Update tests to expect the
always-present MD5 value. Note that this improves robustness of the test
suite as testing in a too-long path may have triggered the MD5
conversion anyways.
Diffstat (limited to 'Source/cmInstallExportGenerator.h')
-rw-r--r-- | Source/cmInstallExportGenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmInstallExportGenerator.h b/Source/cmInstallExportGenerator.h index 54c59f1..dc07d36 100644 --- a/Source/cmInstallExportGenerator.h +++ b/Source/cmInstallExportGenerator.h @@ -4,7 +4,6 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include <cstddef> #include <iosfwd> #include <memory> #include <string> @@ -50,6 +49,7 @@ public: std::string const& GetDestination() const { return this->Destination; } std::string GetDestinationFile() const; std::string GetFileName() const { return this->FileName; } + std::string GetTempDir() const; protected: void GenerateScript(std::ostream& os) override; @@ -57,8 +57,8 @@ protected: void GenerateScriptActions(std::ostream& os, Indent indent) override; void GenerateImportFile(cmExportSet const* exportSet); void GenerateImportFile(const char* config, cmExportSet const* exportSet); + std::string TempDirCalculate() const; void ComputeTempDir(); - size_t GetMaxConfigLength() const; cmExportSet* const ExportSet; std::string const FilePermissions; |