1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

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.
This commit is contained in:
Brad King
2019-03-15 10:05:23 -04:00
parent 1761a9a546
commit 80af3ddea7

View File

@@ -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)