diff options
author | Kyle Edwards <kyedwards@nvidia.com> | 2024-03-07 20:42:50 (GMT) |
---|---|---|
committer | Kyle Edwards <kyedwards@nvidia.com> | 2024-03-08 19:35:49 (GMT) |
commit | 4d3331c63c1e54d1ce3b53677e266c7931be8a26 (patch) | |
tree | 04094d6d0f42fd7d0147f4012f15614c8dba5edd /Utilities/cmzstd | |
parent | 26c414457bb2ed5b05ec9f9303db30fdf45628d2 (diff) | |
download | CMake-4d3331c63c1e54d1ce3b53677e266c7931be8a26.zip CMake-4d3331c63c1e54d1ce3b53677e266c7931be8a26.tar.gz CMake-4d3331c63c1e54d1ce3b53677e266c7931be8a26.tar.bz2 |
cmzstd: Explicitly disable ASM
Our vendored zstd does not include the assembly language file from
upstream (huf_decompress_amd64.S), so it's fine to completely disable
assembly language.
Fixes: #25744
Diffstat (limited to 'Utilities/cmzstd')
-rw-r--r-- | Utilities/cmzstd/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Utilities/cmzstd/CMakeLists.txt b/Utilities/cmzstd/CMakeLists.txt index 981e3d5..e8bee76 100644 --- a/Utilities/cmzstd/CMakeLists.txt +++ b/Utilities/cmzstd/CMakeLists.txt @@ -44,7 +44,12 @@ 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) +target_compile_definitions(cmzstd PRIVATE + # BMI2 instructions are not supported in older environments. + DYNAMIC_BMI2=0 + # Explicitly disable ASM build to work with more compilers. + # Our vendored zstd does not include the assembly language file. + ZSTD_DISABLE_ASM=1 + ) install(FILES LICENSE DESTINATION ${CMAKE_DOC_DIR}/cmzstd) |