summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-15 14:05:23 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-15 14:05:23 (GMT)
commit80af3ddea7ce2717c9a33a51954b9ccd6246af1d (patch)
tree159f486c3d5da786f057d224e71e9f5859dcae75 /Utilities
parent1761a9a54668da90c61f47afbb4e520a7079a697 (diff)
downloadCMake-80af3ddea7ce2717c9a33a51954b9ccd6246af1d.zip
CMake-80af3ddea7ce2717c9a33a51954b9ccd6246af1d.tar.gz
CMake-80af3ddea7ce2717c9a33a51954b9ccd6246af1d.tar.bz2
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')
-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 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)