Skip to content

Commit

Permalink
[build] CMake: Make Protobuf dependency actually optional (#7291)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty authored Oct 25, 2024
1 parent 46b5631 commit 1cfed73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wpiutil/wpiutil-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ include(CMakeFindDependencyMacro)
@FILENAME_DEP_REPLACE@
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_dependency(Threads)
find_dependency(Protobuf)
if(@WITH_PROTOBUF@)
find_dependency(Protobuf)
endif()
@FMTLIB_SYSTEM_REPLACE@

if(@USE_SYSTEM_FMTLIB@)
Expand Down

0 comments on commit 1cfed73

Please sign in to comment.