fix link microprofile
All checks were successful
cpp-template / build (Debug, aarch64-linux-gnu) (push) Successful in 1m38s
cpp-template / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m42s
cpp-template / build (Debug, host.gcc) (push) Successful in 1m33s
cpp-template / build (Debug, mipsel-linux-gnu) (push) Successful in 1m33s
cpp-template / build (Release, arm-linux-gnueabihf) (push) Successful in 2m7s
cpp-template / build (Release, aarch64-linux-gnu) (push) Successful in 2m18s
cpp-template / build (Release, host.gcc) (push) Successful in 1m55s
cpp-template / build (Release, mipsel-linux-gnu) (push) Successful in 1m53s

This commit is contained in:
tqcq
2025-08-26 01:07:11 +08:00
parent 34ea311466
commit b375ff9e29

View File

@@ -7,10 +7,11 @@ function(comm_link TARGET_NAME)
target_link_libraries(${TARGET_NAME} PUBLIC pthread)
endif()
if(COMM_LINK_MICROPROFILE)
target_link_libraries(${TARGET_NAME} PUBLIC microprofile)
endif()
target_link_libraries(${TARGET_NAME} PUBLIC TracyClient)
# if(COMM_LINK_MICROPROFILE)
# target_link_libraries(${TARGET_NAME} PUBLIC microprofile)
# endif()
endfunction()
# cc_library(name STATIC SRCS a.c b.c DEPS PUBLIC pub_lib PRIVATE pri_lib)