Verified Commit 33faa490 authored by Pavel Doležal's avatar Pavel Doležal
Browse files

Fix CMake build in older Ubuntu distributions

parent 1ce86800
......@@ -90,7 +90,7 @@ endif()
if (PROBE_DNSTAP)
find_package(Protobuf REQUIRED)
find_package(Fstrm REQUIRED)
execute_process(COMMAND protoc --cpp_out=${CMAKE_CURRENT_BINARY_DIR} --proto_path=${CMAKE_SOURCE_DIR}/src/dnstap dnstap.proto)
execute_process(COMMAND protoc --cpp_out=${CMAKE_CURRENT_BINARY_DIR} --proto_path=${CMAKE_SOURCE_DIR}/src/dnstap ${CMAKE_SOURCE_DIR}/src/dnstap/dnstap.proto)
add_library(dnstap_proto ${CMAKE_CURRENT_BINARY_DIR}/dnstap.pb.h ${CMAKE_CURRENT_BINARY_DIR}/dnstap.pb.cc)
target_link_libraries(dnstap_proto PUBLIC ${PROTOBUF_LIBRARIES})
target_include_directories(dnstap_proto PUBLIC ${PROTOBUF_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment