Skip to content

Commit

Permalink
启用静态链接 尝试去除对msys-2.0.dll的依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-ux authored Dec 16, 2023
1 parent 06ffc61 commit 528ced7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ jobs:
with:
msystem: ucrt64
install: >-
mingw-w64-x86_64-toolchain
libiconv-devel
cmake
gcc
ninja
pkg-config
- name: build
shell: msys2 {0}
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ target_include_directories(json PRIVATE
target_link_libraries(json PRIVATE
jsonParserLib
)

target_link_libraries(json PRIVATE -static)
add_library(cutest
cutest/CuTest.h
cutest/CuTest.c
Expand Down

0 comments on commit 528ced7

Please sign in to comment.