Skip to content

Commit c698368

Browse files
Update config-ix.cmake
1 parent c8447a8 commit c698368

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/cmake/config-ix.cmake

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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})
210210
endif()
211211

212212
if(LLVM_ENABLE_LIBXML2)

0 commit comments

Comments
 (0)