]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fixed check for building programs statically 1857/head
author0x123456789A <57141050+0x123456789A@users.noreply.github.com>
Tue, 29 Oct 2019 13:41:32 +0000 (14:41 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2019 13:41:32 +0000 (14:41 +0100)
build/cmake/CMakeLists.txt

index 41fdf787ff28aa855846fc912884e900be6a8251..9d0e7fb0b5c34ecc12a8825423b4b666eee36f9c 100644 (file)
@@ -129,7 +129,7 @@ option(ZSTD_PROGRAMS_LINK_SHARED "PROGRAMS LINK SHARED" OFF)
 if (ZSTD_BUILD_PROGRAMS)
     if (NOT ZSTD_BUILD_STATIC AND NOT ZSTD_PROGRAMS_LINK_SHARED)
         message(SEND_ERROR "You need to build static library to build zstd CLI")
-    elseif(ZSTD_BUILD_STATIC AND ZSTD_PROGRAMS_LINK_SHARED)
+    elseif(NOT ZSTD_BUILD_SHARED AND ZSTD_PROGRAMS_LINK_SHARED)
         message(SEND_ERROR "You need to build shared library to build zstd CLI")
     endif ()