mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 13:29:00 +08:00
13c4d0c18d
* [libwebp] Fixed build error ARM64 Windows 10 * [libwebp] Fixed cmake error ARM and ARM64
14 lines
506 B
Diff
14 lines
506 B
Diff
diff --git a/cmake/cpu.cmake b/cmake/cpu.cmake
|
|
index da9a42a4..ce7a69f3 100644
|
|
--- a/cmake/cpu.cmake
|
|
+++ b/cmake/cpu.cmake
|
|
@@ -73,7 +73,7 @@ foreach(I_SIMD RANGE ${WEBP_SIMD_FLAGS_RANGE})
|
|
set(CMAKE_REQUIRED_FLAGS ${SIMD_COMPILE_FLAG})
|
|
webp_check_compiler_flag(${WEBP_SIMD_FLAG} ${WEBP_ENABLE_SIMD})
|
|
else()
|
|
- if(MSVC)
|
|
+ if(MSVC AND NOT (CMAKE_GENERATOR_PLATFORM MATCHES "^ARM"))
|
|
list(GET SIMD_ENABLE_FLAGS ${I_SIMD} SIMD_COMPILE_FLAG)
|
|
else()
|
|
set(SIMD_COMPILE_FLAG " ")
|