]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fixup MSVC source file inclusion for cmake builds
authorMark Harfouche <mark.harfouche@gmail.com>
Mon, 27 Dec 2021 07:21:21 +0000 (02:21 -0500)
committerMark Harfouche <mark.harfouche@gmail.com>
Mon, 27 Dec 2021 07:21:21 +0000 (02:21 -0500)
build/cmake/lib/CMakeLists.txt

index ec8480d5dbf24ce812fbf0480a842d958509e75f..612f667f9c0b03d4d9526178d3ab8d6a5c4186bd 100644 (file)
@@ -22,7 +22,11 @@ include_directories(${LIBRARY_DIR} ${LIBRARY_DIR}/common)
 
 file(GLOB CommonSources ${LIBRARY_DIR}/common/*.c)
 file(GLOB CompressSources ${LIBRARY_DIR}/compress/*.c)
-file(GLOB DecompressSources ${LIBRARY_DIR}/decompress/*.c ${LIBRARY_DIR}/decompress/*.S)
+if (MSVC)
+    file(GLOB DecompressSources ${LIBRARY_DIR}/decompress/*.c)
+else ()
+    file(GLOB DecompressSources ${LIBRARY_DIR}/decompress/*.c ${LIBRARY_DIR}/decompress/*.S)
+endif ()
 file(GLOB DictBuilderSources ${LIBRARY_DIR}/dictBuilder/*.c)
 
 set(Sources