Skip to content

Commit

Permalink
Set protobuf_MODULE_COMPATIBLE before any find_package call
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
  • Loading branch information
traversaro authored and chapulina committed Aug 5, 2021
1 parent a83f56f commit 8650a5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ endif()
# Search for project-specific dependencies
#============================================================================

# This option is needed to use the PROTOBUF_GENERATE_CPP
# in case protobuf is found with the CMake config files
# It needs to be set before any find_package(...) call
# as protobuf could be find transitively by any dependency
set(protobuf_MODULE_COMPATIBLE TRUE)

ign_find_package(sdformat9 REQUIRED VERSION 9.3.0)
set(SDF_VER ${sdformat9_VERSION_MAJOR})

Expand Down

0 comments on commit 8650a5c

Please sign in to comment.