mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[libpng] Fix x86-uwp builds
This commit is contained in:
parent
2e7896e89e
commit
cf93d45879
@ -1,4 +1,4 @@
|
||||
Source: libpng
|
||||
Version: 1.6.28
|
||||
Version: 1.6.28-1
|
||||
Build-Depends: zlib
|
||||
Description: libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files.
|
||||
|
15
ports/libpng/dont-double-eval-CMAKE_SYSTEM_PROCESSOR.patch
Normal file
15
ports/libpng/dont-double-eval-CMAKE_SYSTEM_PROCESSOR.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e076d5e..428cf68 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -78,8 +78,8 @@ set(PNG_PREFIX "" CACHE STRING "Prefix to add to the API function names")
|
||||
set(DFA_XTRA "" CACHE FILEPATH "File containing extra configuration settings")
|
||||
|
||||
# set definitions and sources for arm
|
||||
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm" OR
|
||||
- ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^aarch64")
|
||||
+if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR
|
||||
+ CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
|
||||
set(PNG_ARM_NEON_POSSIBLE_VALUES check on off)
|
||||
set(PNG_ARM_NEON "check" CACHE STRING "Enable ARM NEON optimizations:
|
||||
check: (default) use internal checking code;
|
@ -9,7 +9,9 @@ vcpkg_download_distfile(ARCHIVE
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/use-abort-on-all-platforms.patch"
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/use-abort-on-all-platforms.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/dont-double-eval-CMAKE_SYSTEM_PROCESSOR.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
|
Loading…
x
Reference in New Issue
Block a user