fix Cmake FetchContent build bug (#782)
This commit is contained in:
parent
0766d839fe
commit
4ccad4855c
|
@ -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 )
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue