We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed2d03 commit 9bc1eceCopy full SHA for 9bc1ece
llvm/cmake/config-ix.cmake
@@ -161,6 +161,10 @@ endif()
161
# If LLVM_USE_STATIC_ZSTD is specified, make sure we enable zstd only if static
162
# libraries are found.
163
if(LLVM_USE_STATIC_ZSTD AND NOT TARGET zstd::libzstd_static)
164
+ # Fail if LLVM_ENABLE_ZSTD is FORCE_ON.
165
+ if(LLVM_ENABLE_ZSTD STREQUAL FORCE_ON)
166
+ message(FATAL_ERROR "Failed to find static zstd libraries, but LLVM_USE_STATIC_ZSTD=ON and LLVM_ENABLE_ZSTD=FORCE_ON.")
167
+ endif()
168
set(LLVM_ENABLE_ZSTD OFF)
169
else()
170
set(LLVM_ENABLE_ZSTD ${zstd_FOUND})
0 commit comments