This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Consistently set CMAKE_STATIC_LIBRARY_PREFIX regardless of LIBCXX_ENABLE_STATIC
ClosedPublic

Authored by mstorsjo on Mar 23 2021, 5:04 AM.

Details

Summary

CMAKE_STATIC_LIBRARY_PREFIX affects the naming of all static libs (in
MSVC configurations), including c++experimental, which only is produced
as static regardless of LIBCXX_ENABLE_STATIC.

Diff Detail

Event Timeline

mstorsjo created this revision.Mar 23 2021, 5:04 AM
mstorsjo requested review of this revision.Mar 23 2021, 5:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2021, 5:04 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
curdeius accepted this revision as: curdeius.Mar 23 2021, 5:20 AM
curdeius added a subscriber: curdeius.

LGTM.

ldionne accepted this revision.Mar 23 2021, 7:52 AM
ldionne added a subscriber: ldionne.

I think even better would be to get rid of the need to compute the name of the static library, but this is still a slight improvement.

This revision is now accepted and ready to land.Mar 23 2021, 7:52 AM

I think even better would be to get rid of the need to compute the name of the static library, but this is still a slight improvement.

Yup, but even then, this one makes sure that we are consistent in setting our preference for how cmake names things.