Skip to content

Commit

Permalink
socktap: Protobuf v22.0 and later seem to require C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
riebl committed Jan 15, 2024
1 parent a3a3e76 commit 275247e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/socktap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ if (SOCKTAP_WITH_CUBE_EVK)
target_sources(socktap PRIVATE nfiniity_cube_evk_link.cpp nfiniity_cube_evk.cpp)
target_include_directories(socktap PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(socktap PUBLIC protobuf::libprotobuf)
set_property(TARGET socktap PROPERTY CXX_STANDARD 17)

if (Protobuf_VERSION VERSION_GREATER_EQUAL "22.0")
set_property(TARGET socktap PROPERTY CXX_STANDARD 17)
endif()
endif()

option(SOCKTAP_WITH_AUTOTALKS "Use Autotalks API for socktap" OFF) # Both Secton and Craton devices
Expand Down

0 comments on commit 275247e

Please sign in to comment.