File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -195,18 +195,18 @@ if(LLVM_ENABLE_ZSTD)
195195 elseif (NOT LLVM_USE_SANITIZER MATCHES "Memory.*" )
196196 find_package (zstd QUIET )
197197 endif ()
198- endif ()
199198
200- # If LLVM_USE_STATIC_ZSTD is specified, make sure we enable zstd only if static
201- # libraries are found.
202- if (LLVM_USE_STATIC_ZSTD AND NOT TARGET zstd::libzstd_static)
203- # Fail if LLVM_ENABLE_ZSTD is FORCE_ON.
204- if (LLVM_ENABLE_ZSTD STREQUAL FORCE_ON)
205- message (FATAL_ERROR "Failed to find static zstd libraries, but LLVM_USE_STATIC_ZSTD=ON and LLVM_ENABLE_ZSTD=FORCE_ON." )
199+ # If LLVM_USE_STATIC_ZSTD is specified, make sure we enable zstd only if static
200+ # libraries are found.
201+ if (LLVM_USE_STATIC_ZSTD AND NOT TARGET zstd::libzstd_static)
202+ # Fail if LLVM_ENABLE_ZSTD is FORCE_ON.
203+ if (LLVM_ENABLE_ZSTD STREQUAL FORCE_ON)
204+ message (FATAL_ERROR "Failed to find static zstd libraries, but LLVM_USE_STATIC_ZSTD=ON and LLVM_ENABLE_ZSTD=FORCE_ON." )
205+ endif ()
206+ set (LLVM_ENABLE_ZSTD OFF )
207+ else ()
208+ set (LLVM_ENABLE_ZSTD ${zstd_FOUND} )
206209 endif ()
207- set (LLVM_ENABLE_ZSTD OFF )
208- else ()
209- set (LLVM_ENABLE_ZSTD ${zstd_FOUND} )
210210endif ()
211211
212212if (LLVM_ENABLE_LIBXML2)
You can’t perform that action at this time.
0 commit comments