summaryrefslogtreecommitdiff
path: root/Utilities/cmzstd
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-15 10:05:23 -0400
committerBrad King <brad.king@kitware.com>2019-03-15 10:05:23 -0400
commit80af3ddea7ce2717c9a33a51954b9ccd6246af1d (patch)
tree159f486c3d5da786f057d224e71e9f5859dcae75 /Utilities/cmzstd
parent1761a9a54668da90c61f47afbb4e520a7079a697 (diff)
downloadcmake-80af3ddea7ce2717c9a33a51954b9ccd6246af1d.tar.gz
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.
Diffstat (limited to 'Utilities/cmzstd')
-rw-r--r--Utilities/cmzstd/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmzstd/CMakeLists.txt b/Utilities/cmzstd/CMakeLists.txt
index b1399bd50d..8ed04d8d19 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)