fixed incorrect cmake if statement
@@ -99,7 +99,11 @@ endif ()
if (NOT ENABLE_ZSTD STREQUAL OFF)
if (${CMAKE_VERSION} VERSION_LESS "3.12.0")
+ if (ENABLE_ZSTD STREQUAL ON)
message (FATAL_ERROR " zstd not supported on CMake versions less than 3.12")
+ else ()
+ message (STATUS " zstd not support on CMake versions less than 3.12")
+ endif ()
else ()
message (STATUS "Searching for compression library zstd")
find_package(PkgConfig)
