tss-http: 添加musl静态链接。
This commit is contained in:
parent
12b57e65c9
commit
60f52a14d2
@ -8,4 +8,15 @@ if (MSVC)
|
|||||||
add_compile_options(/source-charset:utf-8)
|
add_compile_options(/source-charset:utf-8)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(tss-http main.cpp)
|
add_executable(tss-http main.cpp)
|
||||||
|
if(UNIX)
|
||||||
|
execute_process(
|
||||||
|
COMMAND uname -a
|
||||||
|
OUTPUT_VARIABLE UNAME_OUT
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
)
|
||||||
|
if(UNAME_OUT MATCHES "alpine" OR UNAME_OUT MATCHES "Alpine")
|
||||||
|
message(STATUS "tss-http on musl static link")
|
||||||
|
target_link_libraries(tss-http PRIVATE -static;-static-libstdc++)
|
||||||
|
endif()
|
||||||
|
endif()
|
Loading…
x
Reference in New Issue
Block a user