From a3d1a35b98fb47000115e3aeebd337f5dac8e9fb Mon Sep 17 00:00:00 2001 From: Clinton Ingram Date: Mon, 20 Nov 2023 02:46:21 -0800 Subject: [PATCH] cmake: Don't add Unix ASM file to the ARM-specific source list for MSVC Signed-off-by: Cosmin Truta --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12ea26d07..d6f8b295f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,9 +138,11 @@ if(TARGET_ARCH MATCHES "^(ARM|arm|aarch)") elseif(NOT ${PNG_ARM_NEON} STREQUAL "off") set(libpng_arm_sources arm/arm_init.c - arm/filter_neon.S arm/filter_neon_intrinsics.c arm/palette_neon_intrinsics.c) + if(NOT MSVC) + list(APPEND libpng_arm_sources arm/filter_neon.S) + endif() if(${PNG_ARM_NEON} STREQUAL "on") add_definitions(-DPNG_ARM_NEON_OPT=2) elseif(${PNG_ARM_NEON} STREQUAL "check")