[zlib-ng] CMakeLists.txt: Disable the various optimization options.

We're setting these using SET() in extlib/CMakeLists.txt, so having them
as actual options causes CMake to print a bunch of warnings like this:

CMake Warning (dev) at extlib/zlib-ng/CMakeLists.txt:133 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'WITH_SSE2'.
This warning is for project developers.  Use -Wno-dev to suppress it.

[extlib] CMakeLists.txt: SET(WITH_VPCLMULQDQ ON)
This commit is contained in:
David Korth 2025-04-19 17:19:05 -04:00
parent 8507eb43d8
commit 74b0465ae1
2 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,7 @@ IF(USE_INTERNAL_ZLIB)
SET(WITH_AVX2 ON)
SET(WITH_AVX512 ON)
SET(WITH_AVX512VNNI ON)
SET(WITH_VPCLMULQDQ ON)
SET(INSTALL_UTILS OFF)

View File

@ -115,6 +115,7 @@ Default is no prefix (empty prefix).")
set(WITH_SANITIZER AUTO CACHE STRING "Enable sanitizer support")
set_property(CACHE WITH_SANITIZER PROPERTY STRINGS "Memory" "Address" "Undefined" "Thread")
IF(0) # rom-properties
if(BASEARCH_ARM_FOUND)
option(WITH_ACLE "Build with ACLE" ON)
option(WITH_NEON "Build with NEON intrinsics" ON)
@ -139,6 +140,7 @@ elseif(BASEARCH_X86_FOUND)
cmake_dependent_option(WITH_AVX512VNNI "Build with AVX512 VNNI extensions" ON "WITH_AVX512" OFF)
cmake_dependent_option(WITH_VPCLMULQDQ "Build with VPCLMULQDQ" ON "WITH_PCLMULQDQ;WITH_AVX512" OFF)
endif()
ENDIF(0) # rom-properties
option(INSTALL_UTILS "Copy minigzip and minideflate during install" OFF)