mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
cmake: Make musl support more distro agnostic
This commit is contained in:
parent
86a75c8ac8
commit
7e5f9b857e
1 changed files with 5 additions and 12 deletions
|
@ -334,18 +334,11 @@ include_directories(BEFORE ${OPENSSL_INCLUDE_DIR})
|
||||||
# Make everyone find the highwayhash includes
|
# Make everyone find the highwayhash includes
|
||||||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/auxil/highwayhash)
|
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/auxil/highwayhash)
|
||||||
|
|
||||||
# Alpine support
|
# Determine if libfts is external to libc, i.e. musl
|
||||||
if ( ${CMAKE_SYSTEM_NAME} MATCHES Linux AND EXISTS /etc/os-release )
|
find_package(FTS)
|
||||||
execute_process(
|
if ( FTS_FOUND )
|
||||||
COMMAND grep -q alpine /etc/os-release
|
list(APPEND OPTLIBS ${FTS_LIBRARY})
|
||||||
RESULT_VARIABLE os_release_alpine
|
include_directories(BEFORE ${FTS_INCLUDE_DIR})
|
||||||
)
|
|
||||||
|
|
||||||
if ( os_release_alpine EQUAL 0 )
|
|
||||||
find_package(FTS REQUIRED)
|
|
||||||
list(APPEND OPTLIBS ${FTS_LIBRARY})
|
|
||||||
include_directories(BEFORE ${FTS_INCLUDE_DIR})
|
|
||||||
endif ()
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set(zeekdeps ${zeekdeps}
|
set(zeekdeps ${zeekdeps}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue