Skip to content

Commit d4e0c88

Browse files
committed
Add static library build variant
1 parent 5797295 commit d4e0c88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ endfunction()
5353

5454
add_libzsync2(libzsync2 SHARED)
5555

56+
# for use as a submodule
57+
add_libzsync2(libzsync2_static STATIC)
58+
set_property(TARGET libzsync2_static PROPERTY OUTPUT_NAME libzsync2)
59+
5660
add_libzsync2(libzsync2_standalone STATIC)
5761
# this will propagate to target zsync, too
5862
target_compile_definitions(libzsync2_standalone PUBLIC ZSYNC_STANDALONE)

0 commit comments

Comments
 (0)