Skip to content

Commit

Permalink
[HotFix] zstd dependency on multi Linux distributes (#2417)
Browse files Browse the repository at this point in the history
  • Loading branch information
junliume authored Sep 27, 2023
1 parent b9e724a commit 3413d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ clang_tidy_check(MIOpen)

find_package(zstd)
if(zstd_FOUND)
target_link_libraries(MIOpen PRIVATE zstd::libzstd_static)
target_link_libraries(MIOpen PRIVATE $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
endif()

function(target_internal_library TARGET)
Expand Down

0 comments on commit 3413d2d

Please sign in to comment.