File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
project (libzstd C ASM)
11
11
12
+ message (FATAL_ERROR "CMAKE_SYSTEM_PROCESSOR: '${CMAKE_SYSTEM_PROCESSOR} '" )
12
13
set (CMAKE_INCLUDE_CURRENT_DIR TRUE )
13
14
option (ZSTD_BUILD_STATIC "BUILD STATIC LIBRARIES" ON )
14
15
option (ZSTD_BUILD_SHARED "BUILD SHARED LIBRARIES" ON )
@@ -42,7 +43,10 @@ if (MSVC)
42
43
file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c)
43
44
add_compile_options (-DZSTD_DISABLE_ASM)
44
45
else ()
45
- file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c ${LIBRARY_DIR} /decompress/*.S)
46
+ file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c)
47
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES AMD64)
48
+ set (DecompressSources ${DecompressSources} ${LIBRARY_DIR} /decompress/huf_decompress_amd64.S)
49
+ endif ()
46
50
endif ()
47
51
file (GLOB DictBuilderSources ${LIBRARY_DIR} /dictBuilder/*.c)
48
52
file (GLOB DeprecatedSources ${LIBRARY_DIR} /deprecated/*.c)
You can’t perform that action at this time.
0 commit comments