Merge pull request #4444 from proller/fix15

Build fixes (freebsd)
This commit is contained in:
alexey-milovidov 2019-02-19 19:33:14 +03:00 committed by GitHub
commit 4588542e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
if (NOT ARCH_ARM AND NOT ARCH_32 AND NOT APPLE)
# Freebsd: contrib/cppkafka/include/cppkafka/detail/endianness.h:53:23: error: 'betoh16' was not declared in this scope
if (NOT ARCH_ARM AND NOT ARCH_32 AND NOT APPLE AND NOT OS_FREEBSD)
option (ENABLE_RDKAFKA "Enable kafka" ON)
endif ()

View File

@ -1,5 +1,5 @@
# Freebsd: TODO: use system devel/xxhash. now error: undefined reference to `XXH32'
if (LZ4_INCLUDE_DIR AND NOT OS_FREEBSD)
if (LZ4_INCLUDE_DIR)
if (NOT EXISTS "${LZ4_INCLUDE_DIR}/xxhash.h")
message (WARNING "LZ4 library does not have XXHash. Support for XXHash will be disabled.")
set (USE_XXHASH 0)
@ -8,4 +8,8 @@ if (LZ4_INCLUDE_DIR AND NOT OS_FREEBSD)
endif ()
endif ()
if (OS_FREEBSD AND NOT USE_INTERNAL_LZ4_LIBRARY)
set (USE_XXHASH 0)
endif ()
message (STATUS "Using xxhash=${USE_XXHASH}")