]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed cmake + windows + visual + clang-cl
authorYann Collet <Cyan4973@users.noreply.github.com>
Mon, 9 Jun 2025 07:09:51 +0000 (07:09 +0000)
committerYann Collet <Cyan4973@users.noreply.github.com>
Mon, 9 Jun 2025 07:09:51 +0000 (07:09 +0000)
by removing processing of resource files in this case

build/cmake/lib/CMakeLists.txt

index 0a93e8d312bbe954fd3eb40483e58f5b0c444095..a6b894c4db957de9b0c4b1a86582b312a90606f6 100644 (file)
@@ -97,9 +97,11 @@ if (ZSTD_LEGACY_SUPPORT)
             ${LIBRARY_LEGACY_DIR}/zstd_v07.h)
 endif ()
 
-if (MSVC)
+if (MSVC AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
     set(MSVC_RESOURCE_DIR ${ZSTD_SOURCE_DIR}/build/VS2010/libzstd-dll)
     set(PlatformDependResources ${MSVC_RESOURCE_DIR}/libzstd-dll.rc)
+else()
+    set(PlatformDependResources)
 endif ()
 
 # Explicitly set the language to C for all files, including ASM files.