diff options
author | lifegpc <g1710431395@gmail.com> | 2021-07-01 14:16:06 (GMT) |
---|---|---|
committer | lifegpc <g1710431395@gmail.com> | 2021-07-01 14:16:06 (GMT) |
commit | afa7329622726e988fdf9d443362a6bf9f371815 (patch) | |
tree | 55e78eadab9f0733a9d24b19dd551c3917d75e41 /build/cmake | |
parent | 756ca1a7f2515786a4bc7fbede22c37580f7ffe3 (diff) | |
download | lz4-afa7329622726e988fdf9d443362a6bf9f371815.zip lz4-afa7329622726e988fdf9d443362a6bf9f371815.tar.gz lz4-afa7329622726e988fdf9d443362a6bf9f371815.tar.bz2 |
add missing if for lz4c
Diffstat (limited to 'build/cmake')
-rw-r--r-- | build/cmake/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index a7e563d..eea4be3 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -146,7 +146,9 @@ if (LZ4_BUILD_LEGACY_LZ4C) list(APPEND LZ4_PROGRAMS_BUILT lz4c) add_executable(lz4c ${LZ4_CLI_SOURCES}) set_target_properties(lz4c PROPERTIES COMPILE_DEFINITIONS "ENABLE_LZ4C_LEGACY_OPTIONS") - target_link_libraries(lz4c ${LZ4_LINK_LIBRARY}) + if (BUILD_STATIC_LIBS) + target_link_libraries(lz4c ${LZ4_LINK_LIBRARY}) + endif() endif() # Extra warning flags |