fix Cmake FetchContent build bug (#782)

This commit is contained in:
大萝卜 2024-09-25 13:54:43 +08:00 committed by GitHub
parent 0766d839fe
commit 4ccad4855c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -115,8 +115,8 @@ include(FetchContent)
FetchContent_Declare(
yalantinglibs
GIT_REPOSITORY https://github.com/JYLeeLYJ/yalantinglibs.git
GIT_TAG feat/fetch # optional ( default master / main )
GIT_REPOSITORY https://github.com/alibaba/yalantinglibs.git
GIT_TAG 0766d839fe52eb12ac7ecd34bc39a76399cfde41 # optional ( default master / main )
GIT_SHALLOW 1 # optional ( --depth=1 )
)

View File

@ -22,6 +22,7 @@ target_include_directories(yalantinglibs INTERFACE
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../include/ylt/thirdparty>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../include/ylt/standalone>
)
install(TARGETS yalantinglibs
EXPORT yalantinglibsTargets