This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix policy CMP0116 warnings for cmake 3.20 or above.
ClosedPublic

Authored by lntue on Mar 13 2023, 1:16 PM.

Details

Diff Detail

Event Timeline

lntue created this revision.Mar 13 2023, 1:16 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 13 2023, 1:16 PM
lntue requested review of this revision.Mar 13 2023, 1:16 PM
sivachandra added inline comments.Mar 13 2023, 1:23 PM
libc/CMakeLists.txt
7

The approach taken by other LLVM projects is to use the LLVM wide common policy settings. We should copy that approach. For example, look at what clang does: https://github.com/llvm/llvm-project/blob/main/clang/CMakeLists.txt#L3

lntue updated this revision to Diff 504830.Mar 13 2023, 1:32 PM

Include LLVM's cmake policies instead.

lntue marked an inline comment as done.Mar 13 2023, 1:32 PM
sivachandra accepted this revision.Mar 13 2023, 1:40 PM
This revision is now accepted and ready to land.Mar 13 2023, 1:40 PM
This revision was landed with ongoing or failed builds.Mar 13 2023, 2:28 PM
This revision was automatically updated to reflect the committed changes.