Skip to content

Commit

Permalink
Enable new policy to fix protobuf compilation errors (gazebosim#1046)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Perez <[email protected]>
Signed-off-by: William Lew <[email protected]>
  • Loading branch information
Blast545 authored and WilliamLewww committed Dec 7, 2021
1 parent c31ab18 commit acf5ef1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ endif()
# Search for project-specific dependencies
#============================================================================

# Setting this policy enables using the protobuf_MODULE_COMPATIBLE
# set command in CMake versions older than 13.13
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# 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
Expand Down

0 comments on commit acf5ef1

Please sign in to comment.