mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 05:17:50 +08:00
8e0a801c62
* [libwebp] update to 1.2.1 * update version * Convert patch CRLF to LF * update version * update patch and portfile,cmake * update version * update portifile.cmake * update portfile.cmake * update version * update portfile.cmake * update version * revert portfile.cmake * update version * add trailing line break * update version
14 lines
661 B
Diff
14 lines
661 B
Diff
diff --git a/cmake/cpu.cmake b/cmake/cpu.cmake
|
|
index bc0dbc9..381f64a 100644
|
|
--- a/cmake/cpu.cmake
|
|
+++ b/cmake/cpu.cmake
|
|
@@ -97,7 +97,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 AND SIMD_ENABLE_FLAGS)
|
|
+ if(MSVC AND SIMD_ENABLE_FLAGS AND NOT (CMAKE_GENERATOR_PLATFORM MATCHES "^ARM"))
|
|
# The detection for SSE2/SSE4 support under MSVC is based on the compiler
|
|
# version so e.g., clang-cl will require flags to enable the assembly.
|
|
list(GET SIMD_ENABLE_FLAGS ${I_SIMD} SIMD_COMPILE_FLAG)
|