Try to fix android ci

This commit is contained in:
deal 2022-01-08 13:50:29 +08:00 committed by GitHub
parent a00f181b30
commit d0df0f9731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -338,7 +338,11 @@ endif()
# fmt-lib
add_subdirectory(fmt)
target_link_libraries(thirdparty fmt-header-only)
if (ANDROID OR LINUX)
target_link_libraries(thirdparty INTERFACE fmt-header-only)
else()
target_link_libraries(thirdparty fmt-header-only)
endif()
configure_target_outdir(fmt)
# put "thirdparty" into thirdparty folder, too