]> git.ipfire.org Git - thirdparty/zstd.git/commit
Correct multithread logic, fixing 'unsupported parameter' error 1207/head
authoroleid <oleid@users.noreply.github.com>
Tue, 26 Jun 2018 06:36:41 +0000 (08:36 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 06:36:41 +0000 (08:36 +0200)
commit4e196b2ac3a21116b8b24597b294315e33825269
tree07898ade269ed8f4763cb3a132c402d259ee64ad
parentb426bcc097355d82002d8bc7f531de7292384ceb
Correct multithread logic, fixing 'unsupported parameter' error

The original conditions only worked, when both, static and shared variants where built, resulting in an inconsistency between programs and library. The program was built with MT support enabled, the library not. That lead to error 11 'unsupported parameter' when compressing anything with the command line tool.

When changing the AND condition to `ZSTD_MULTITHREAD_SUPPORT AND (ZSTD_BUILD_SHARED OR ZSTD_BUILD_SHARED)`, cmake stopps complaining one of the targets wasn't built. This commit works for any case.
build/cmake/lib/CMakeLists.txt