Skip to content

Commit

Permalink
Link objects only (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 16, 2024
1 parent 298e0d4 commit 71cfc32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_custom_command(
VERBATIM
)

add_library(sodium STATIC)
add_library(sodium OBJECT)

target_sources(
sodium
Expand Down Expand Up @@ -386,6 +386,8 @@ add_bare_module(sodium_native)

target_sources(
${sodium_native}
PUBLIC
$<TARGET_OBJECTS:sodium>
PRIVATE
binding.c
macros.h
Expand Down

0 comments on commit 71cfc32

Please sign in to comment.