LZ4 library don't accept options #671
paulocoutinhox
started this conversation in
General
Replies: 1 comment
-
The options would only apply if Instead set them like you do in the original example. CPMAddPackage(
NAME lz4
GITHUB_REPOSITORY lz4/lz4
VERSION 1.10.0
# no options here
)
if (lz4_ADDED)
# lz4 config options
set(BUILD_SHARED_LIBS OFF)
set(BUILD_STATIC_LIBS ON)
set(LZ4_BUILD_CLI OFF)
set(LZ4_BUILD_LEGACY_LZ4C OFF)
set(LZ4_BUNDLED_MODE OFF)
add_subdirectory(${lz4_SOURCE_DIR}/build/cmake lz4_build)
endif()
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a small problem here about LZ4 library.
Im passing the OPTIONS but it don't affect the library build, only if i put outside on CMakeLists.txt.
Example working:
Example don't working:
Can you help me?
Beta Was this translation helpful? Give feedback.
All reactions