mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:41:37 +08:00
ce8fd9e724
* update libpng to 1.6.40 * update baseline * fix patch files * update baseline
25 lines
896 B
Diff
25 lines
896 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e355e4d..990e32a 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -188,8 +188,8 @@ endif()
|
|
# Set definitions and sources for MIPS.
|
|
if(TARGET_ARCH MATCHES "mipsel*" OR
|
|
TARGET_ARCH MATCHES "mips64el*")
|
|
- set(PNG_MIPS_MSA_POSSIBLE_VALUES on off)
|
|
- set(PNG_MIPS_MSA "on"
|
|
+ set(PNG_MIPS_MSA_POSSIBLE_VALUES on off check)
|
|
+ set(PNG_MIPS_MSA "check"
|
|
CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default")
|
|
set_property(CACHE PNG_MIPS_MSA
|
|
PROPERTY STRINGS ${PNG_MIPS_MSA_POSSIBLE_VALUES})
|
|
@@ -202,6 +202,8 @@ if(TARGET_ARCH MATCHES "mipsel*" OR
|
|
mips/filter_msa_intrinsics.c)
|
|
if(${PNG_MIPS_MSA} STREQUAL "on")
|
|
add_definitions(-DPNG_MIPS_MSA_OPT=2)
|
|
+ else()
|
|
+ add_definitions(-DPNG_MIPS_MSA_CHECK_SUPPORTED)
|
|
endif()
|
|
else()
|
|
add_definitions(-DPNG_MIPS_MSA_OPT=0)
|