cmake: Disable libbpf build by default
This commit is contained in:
parent
f695dc999b
commit
dec233b9ef
|
@ -67,7 +67,12 @@ if(LIBNGTCP2_CRYPTO_OPENSSL_FOUND)
|
||||||
set(HAVE_LIBNGTCP2_CRYPTO_OPENSSL 1)
|
set(HAVE_LIBNGTCP2_CRYPTO_OPENSSL 1)
|
||||||
endif()
|
endif()
|
||||||
find_package(Libnghttp3 0.0.0)
|
find_package(Libnghttp3 0.0.0)
|
||||||
find_package(Libbpf 0.4.0)
|
if(WITH_LIBBPF)
|
||||||
|
find_package(Libbpf 0.4.0)
|
||||||
|
if(NOT LIBBPF_FOUND)
|
||||||
|
message(FATAL_ERROR "libbpf was requested (WITH_LIBBPF=1) but not found.")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
if(OPENSSL_FOUND AND LIBEV_FOUND AND ZLIB_FOUND)
|
if(OPENSSL_FOUND AND LIBEV_FOUND AND ZLIB_FOUND)
|
||||||
set(ENABLE_APP_DEFAULT ON)
|
set(ENABLE_APP_DEFAULT ON)
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -27,5 +27,6 @@ option(WITH_SPDYLAY "Use spdylay"
|
||||||
${WITH_SPDYLAY_DEFAULT})
|
${WITH_SPDYLAY_DEFAULT})
|
||||||
option(WITH_MRUBY "Use mruby")
|
option(WITH_MRUBY "Use mruby")
|
||||||
option(WITH_NEVERBLEED "Use neverbleed")
|
option(WITH_NEVERBLEED "Use neverbleed")
|
||||||
|
option(WITH_LIBBPF "Use libbpf")
|
||||||
|
|
||||||
# vim: ft=cmake:
|
# vim: ft=cmake:
|
||||||
|
|
Loading…
Reference in New Issue