Skip to content

Commit

Permalink
Fix CMake not enabling POWER9_FEATURES
Browse files Browse the repository at this point in the history
  • Loading branch information
Dead2 committed Feb 17, 2023
1 parent 7e1d807 commit 2fa631e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ if(WITH_OPTIM)
check_power9_intrinsics()
endif()
if(HAVE_VMX OR HAVE_POWER8_INTRIN OR HAVE_POWER9_INTRIN)
add_definitions(-DPOWER_FEATURES)
list(APPEND ZLIB_ARCH_HDRS ${ARCHDIR}/power_features.h)
list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/power_features.c)
endif()
Expand All @@ -682,7 +683,6 @@ if(WITH_OPTIM)
if(WITH_POWER8)
if(HAVE_POWER8_INTRIN)
add_definitions(-DPOWER8_VSX)
add_definitions(-DPOWER_FEATURES)
set(POWER8_SRCS ${ARCHDIR}/adler32_power8.c ${ARCHDIR}/chunkset_power8.c ${ARCHDIR}/slide_hash_power8.c)
if("${ARCH}" MATCHES "powerpc64(le)?")
add_definitions(-DPOWER8_VSX_CRC32)
Expand Down

0 comments on commit 2fa631e

Please sign in to comment.