mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] style: Resolve the remaining warnings issued by cmake-lint
Resolve the indentation issues raised by cmake-lint on a fragment of CMakeLists.txt that no longer exists in branch 'libpng18'.
This commit is contained in:
parent
a7a8faeefa
commit
8b1d489bce
@ -131,8 +131,8 @@ endif()
|
|||||||
|
|
||||||
if(PNG_HARDWARE_OPTIMIZATIONS)
|
if(PNG_HARDWARE_OPTIMIZATIONS)
|
||||||
|
|
||||||
# Set definitions and sources for ARM.
|
# Set definitions and sources for ARM.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)")
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm64|aarch64)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm64|aarch64)")
|
||||||
set(PNG_ARM_NEON_POSSIBLE_VALUES on off)
|
set(PNG_ARM_NEON_POSSIBLE_VALUES on off)
|
||||||
set(PNG_ARM_NEON "on"
|
set(PNG_ARM_NEON "on"
|
||||||
@ -160,10 +160,10 @@ if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)")
|
|||||||
else()
|
else()
|
||||||
add_definitions(-DPNG_ARM_NEON_OPT=0)
|
add_definitions(-DPNG_ARM_NEON_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for PowerPC.
|
# Set definitions and sources for PowerPC.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)")
|
||||||
set(PNG_POWERPC_VSX_POSSIBLE_VALUES on off)
|
set(PNG_POWERPC_VSX_POSSIBLE_VALUES on off)
|
||||||
set(PNG_POWERPC_VSX "on"
|
set(PNG_POWERPC_VSX "on"
|
||||||
CACHE STRING "Enable POWERPC VSX optimizations: on|off; on is default")
|
CACHE STRING "Enable POWERPC VSX optimizations: on|off; on is default")
|
||||||
@ -182,10 +182,10 @@ if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)")
|
|||||||
else()
|
else()
|
||||||
add_definitions(-DPNG_POWERPC_VSX_OPT=0)
|
add_definitions(-DPNG_POWERPC_VSX_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for Intel.
|
# Set definitions and sources for Intel.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)")
|
||||||
set(PNG_INTEL_SSE_POSSIBLE_VALUES on off)
|
set(PNG_INTEL_SSE_POSSIBLE_VALUES on off)
|
||||||
set(PNG_INTEL_SSE "on"
|
set(PNG_INTEL_SSE "on"
|
||||||
CACHE STRING "Enable INTEL_SSE optimizations: on|off; on is default")
|
CACHE STRING "Enable INTEL_SSE optimizations: on|off; on is default")
|
||||||
@ -204,10 +204,10 @@ if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)")
|
|||||||
else()
|
else()
|
||||||
add_definitions(-DPNG_INTEL_SSE_OPT=0)
|
add_definitions(-DPNG_INTEL_SSE_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for MIPS.
|
# Set definitions and sources for MIPS.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)")
|
||||||
set(PNG_MIPS_MSA_POSSIBLE_VALUES on off)
|
set(PNG_MIPS_MSA_POSSIBLE_VALUES on off)
|
||||||
set(PNG_MIPS_MSA "on"
|
set(PNG_MIPS_MSA "on"
|
||||||
CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default")
|
CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default")
|
||||||
@ -251,10 +251,10 @@ if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)")
|
|||||||
add_definitions(-DPNG_MIPS_MSA_OPT=0)
|
add_definitions(-DPNG_MIPS_MSA_OPT=0)
|
||||||
add_definitions(-DPNG_MIPS_MMI_OPT=0)
|
add_definitions(-DPNG_MIPS_MMI_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for LoongArch.
|
# Set definitions and sources for LoongArch.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)")
|
||||||
include(CheckCCompilerFlag)
|
include(CheckCCompilerFlag)
|
||||||
set(PNG_LOONGARCH_LSX_POSSIBLE_VALUES on off)
|
set(PNG_LOONGARCH_LSX_POSSIBLE_VALUES on off)
|
||||||
set(PNG_LOONGARCH_LSX "on"
|
set(PNG_LOONGARCH_LSX "on"
|
||||||
@ -280,34 +280,34 @@ if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)")
|
|||||||
else()
|
else()
|
||||||
add_definitions(-DPNG_LOONGARCH_LSX_OPT=0)
|
add_definitions(-DPNG_LOONGARCH_LSX_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else(PNG_HARDWARE_OPTIMIZATIONS)
|
else(PNG_HARDWARE_OPTIMIZATIONS)
|
||||||
|
|
||||||
# Set definitions and sources for ARM.
|
# Set definitions and sources for ARM.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(arm|aarch)")
|
||||||
add_definitions(-DPNG_ARM_NEON_OPT=0)
|
add_definitions(-DPNG_ARM_NEON_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for PowerPC.
|
# Set definitions and sources for PowerPC.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(powerpc|ppc64)")
|
||||||
add_definitions(-DPNG_POWERPC_VSX_OPT=0)
|
add_definitions(-DPNG_POWERPC_VSX_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for Intel.
|
# Set definitions and sources for Intel.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(i[3-6]86|x86|amd64)")
|
||||||
add_definitions(-DPNG_INTEL_SSE_OPT=0)
|
add_definitions(-DPNG_INTEL_SSE_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for MIPS.
|
# Set definitions and sources for MIPS.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(mipsel|mips64el)")
|
||||||
add_definitions(-DPNG_MIPS_MSA_OPT=0)
|
add_definitions(-DPNG_MIPS_MSA_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for LoongArch.
|
# Set definitions and sources for LoongArch.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)")
|
if(PNG_TARGET_ARCHITECTURE MATCHES "^(loongarch)")
|
||||||
add_definitions(-DPNG_LOONGARCH_LSX_OPT=0)
|
add_definitions(-DPNG_LOONGARCH_LSX_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif(PNG_HARDWARE_OPTIMIZATIONS)
|
endif(PNG_HARDWARE_OPTIMIZATIONS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user