mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
install,export: Maybe transform OBJECT libraries to INTERFACE libraries
Teach the `install` and `export` commands to support installing and exporting `OBJECT` libraries without their object files. Transform them to `INTERFACE` libraries in such cases. For `install(TARGETS)`, activate this when no destination for the object files is specified. For `export`, activate this only under Xcode with multiple architectures when we have no well-defined object file locations to give to clients.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "cmExportFileGenerator.h"
|
||||
#include "cmExportInstallFileGenerator.h"
|
||||
#include "cmStateTypes.h"
|
||||
|
||||
class cmGeneratorTarget;
|
||||
class cmInstallExportGenerator;
|
||||
@@ -41,8 +42,9 @@ protected:
|
||||
void GenerateImportHeaderCode(std::ostream& os,
|
||||
const std::string& config = "") override;
|
||||
void GenerateImportFooterCode(std::ostream& os) override;
|
||||
void GenerateImportTargetCode(std::ostream& os,
|
||||
const cmGeneratorTarget* target) override;
|
||||
void GenerateImportTargetCode(
|
||||
std::ostream& os, cmGeneratorTarget const* target,
|
||||
cmStateEnums::TargetType /*targetType*/) override;
|
||||
void GenerateExpectedTargetsCode(
|
||||
std::ostream& os, const std::string& expectedTargets) override;
|
||||
void GenerateImportPropertyCode(
|
||||
|
||||
Reference in New Issue
Block a user