summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-07-05 16:37:42 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-08-04 10:45:20 +0400
commit9c2215e022c325599bd1b66d1f2214529fb99a24 (patch)
tree03aff125ec9f83a01c813badc4988f821416c724 /cmake
parent86975e0492c03535271aea67e0b5e7e8fd0b1b78 (diff)
downloadmariadb-git-9c2215e022c325599bd1b66d1f2214529fb99a24.tar.gz
MDEV-9872 - Add common optimized CRC32 function interface
Move crc32-vpmsum to extra. Compile static crc32-vpmsum instead of adding sources directly. Make use of crc32-vpmsum via my_checksum(). Based on contribution by Daniel Black.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/crc32-vpmsum.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/crc32-vpmsum.cmake b/cmake/crc32-vpmsum.cmake
new file mode 100644
index 00000000000..c1a2dee56e2
--- /dev/null
+++ b/cmake/crc32-vpmsum.cmake
@@ -0,0 +1,5 @@
+IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
+ SET(HAVE_CRC32_VPMSUM 1)
+ SET(CRC32_VPMSUM_LIBRARY crc32-vpmsum)
+ ADD_SUBDIRECTORY(extra/crc32-vpmsum)
+ENDIF()