Skip to content

How do I config ylt with fetch content? #580

@yhyu13

Description

@yhyu13

Search before asking

  • I searched the issues and found no similar issues.

What happened + What you expected to happen

Hi, I am using ylt in a project. And the way I import ylt is by fetch content.

include(FetchContent)
FetchContent_Declare(
    yalantinglibs
    GIT_REPOSITORY https://github.com/yhyu13/yalantinglibs.git
    GIT_TAG 679cbac8f3c5566a842c91b9d332632d3076f6ac
    GIT_SHALLOW 1 # optional ( --depth=1 )
)
FetchContent_MakeAvailable(yalantinglibs)

I found severl config flag interesting https://github.com/alibaba/yalantinglibs/blob/main/cmake/config.cmake

How do I enable these flag options in my build with the way fetch content work?

Do these flags taken effect simply by truning them to ON, and leave everything else to CMAKE? Then I should probably make a cl to my fork repo that turn these flag on

Reproduction way

Anything else

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions