Skip to content

Commit

Permalink
Fix Protobuf dependency for CMake Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Jun 9, 2024
1 parent 72ae751 commit 28b38b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ endif()

find_package(LIBSSH 0.7.1)

find_package(Protobuf CONFIG REQUIRED)
find_package(Protobuf REQUIRED)

set(APRILTAG_DEP_REPLACE "find_dependency(apriltag)")
Expand Down
5 changes: 0 additions & 5 deletions wpiutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@ endif()
wpilib_target_warnings(wpiutil)
target_link_libraries(wpiutil protobuf::libprotobuf Threads::Threads ${CMAKE_DL_LIBS})

if(Protobuf_VERSION VERSION_GREATER_EQUAL 4)
find_package(absl REQUIRED)
target_link_libraries(wpiutil absl::spinlock_wait)
endif()

if(ATOMIC)
target_link_libraries(wpiutil ${ATOMIC})
endif()
Expand Down

0 comments on commit 28b38b7

Please sign in to comment.