summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-18 15:24:20 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-03-18 15:24:30 (GMT)
commit8d179cce8790d2a514075b72c11a1e039c51d942 (patch)
treea99f82a150860c9e218704c3b4cbe4d37256b5b6 /Utilities
parentb06f8c93e5bc65394fe55b3f7ae923fe296048b3 (diff)
parent80af3ddea7ce2717c9a33a51954b9ccd6246af1d (diff)
downloadCMake-8d179cce8790d2a514075b72c11a1e039c51d942.zip
CMake-8d179cce8790d2a514075b72c11a1e039c51d942.tar.gz
CMake-8d179cce8790d2a514075b72c11a1e039c51d942.tar.bz2
Merge topic 'import-zstd'
80af3ddea7 zstd: Disable BMI2 instructions for build within CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3107
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)