Skip to content

[C++] Disable exporting CMake packages #47005

@kou

Description

@kou

Describe the enhancement requested

azure-sdk-for-cpp uses export(PACKAGE) https://cmake.org/cmake/help/latest/command/export.html#package . It changes user package registry (~/.cmake/packages/) https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#user-package-registry . It's outside of a build directory. If user package registry is changed, other build may be failed.

FYI: CMake 3.15 added CMP0090 https://cmake.org/cmake/help/latest/policy/CMP0090.html that disables export(PACKAGE) by default.

We should disable exporting CMake packages.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions