Skip to content

Commit

Permalink
socktap: prefer CMake config but allow to fall back to FindProtobuf.c…
Browse files Browse the repository at this point in the history
…make
  • Loading branch information
riebl committed Jan 30, 2024
1 parent dc3ed99 commit b2e1409
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/socktap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ add_executable(socktap
# cube evk board from nfiniity
option(SOCKTAP_WITH_CUBE_EVK "Use cube evk for socktap" OFF)
if (SOCKTAP_WITH_CUBE_EVK)
find_package(Protobuf REQUIRED CONFIG)
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
find_package(Protobuf REQUIRED)
protobuf_generate(TARGET socktap PROTOS nfiniity_cube_radio.proto)
target_compile_definitions(socktap PUBLIC "SOCKTAP_WITH_CUBE_EVK")
target_sources(socktap PRIVATE nfiniity_cube_evk_link.cpp nfiniity_cube_evk.cpp)
Expand Down

0 comments on commit b2e1409

Please sign in to comment.