From 80af3ddea7ce2717c9a33a51954b9ccd6246af1d Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 15 Mar 2019 10:05:23 -0400 Subject: zstd: Disable BMI2 instructions for build within CMake Our nightly and release binaries build in an environment that does not support these instructions. Disable them everywhere for simplicity because CMake's application of this library is not performance-critical. --- Utilities/cmzstd/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/cmzstd/CMakeLists.txt b/Utilities/cmzstd/CMakeLists.txt index b1399bd..8ed04d8 100644 --- a/Utilities/cmzstd/CMakeLists.txt +++ b/Utilities/cmzstd/CMakeLists.txt @@ -41,4 +41,7 @@ add_library(cmzstd STATIC lib/dictBuilder/zdict.c ) +# BMI2 instructions are not supported in older environments. +set_property(TARGET cmzstd PROPERTY COMPILE_DEFINITIONS DYNAMIC_BMI2=0) + install(FILES LICENSE DESTINATION ${CMAKE_DOC_DIR}/cmzstd) -- cgit v0.12