Skip to content

Commit

Permalink
Merge pull request #448 from scribam/zstd-static
Browse files Browse the repository at this point in the history
Use libzstd_shared only if BUILD_SHARED_LIBS is ON
  • Loading branch information
0-wiz-0 authored Jul 28, 2024
2 parents 41eda5d + cdea0fb commit feebc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ if(ENABLE_ZSTD)
find_package(zstd 1.3.6)
if(zstd_FOUND)
set(HAVE_LIBZSTD 1)
if(TARGET zstd::libzstd_shared)
if(TARGET zstd::libzstd_shared AND BUILD_SHARED_LIBS)
set(zstd_TARGET zstd::libzstd_shared)
else()
set(zstd_TARGET zstd::libzstd_static)
Expand Down

0 comments on commit feebc07

Please sign in to comment.