From: Ilya Kurdyukov <59548320+ilyakurdyukov@users.noreply.github.com> Date: Wed, 9 Jun 2021 12:19:50 +0000 (+0700) Subject: fix: SSE42CMPSTR compiled even if WITH_SSE4=OFF X-Git-Tag: 2.0.4~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a0907e3f7684055426b1d52a6431ec4d3f5c256;p=thirdparty%2Fzlib-ng.git fix: SSE42CMPSTR compiled even if WITH_SSE4=OFF --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a9b51438..d7f89244 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -789,7 +789,7 @@ if(WITH_OPTIM) add_definitions(-DX86_SSE42_CRC_INTRIN) endif() endif() - if(HAVE_SSE42CMPSTR_INTRIN) + if(WITH_SSE4 AND HAVE_SSE42CMPSTR_INTRIN) add_definitions(-DX86_SSE42_CMP_STR) set(SSE42_SRCS ${ARCHDIR}/compare258_sse.c) add_feature_info(SSE42_COMPARE258 1 "Support SSE4.2 optimized compare258, using \"${SSE4FLAG}\"")