Skip to content

Commit

Permalink
Remove redundant check for protobuf dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
  • Loading branch information
srmainwaring committed Mar 3, 2023
1 parent a3e1bff commit e388b89
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,6 @@ add_subdirectory(cmake/dependencies dependencies)

include(deps)

include(CMakeFindDependencyMacro)
include(FindProtobuf)
if(NOT protobuf_FOUND
AND NOT PROTOBUF_FOUND
AND NOT TARGET protobuf::libprotobuf)
if(BUILD_protobuf)
find_dependency(protobuf CONFIG REQUIRED)
endif()
endif()

# ============================================================================
# Debug messages for find_package

# message("pybind11_FOUND: ${pybind11_FOUND}") message("pybind11_VERSION:
# ${pybind11_VERSION}") message("pybind11_VERSION_TYPE:
# ${pybind11_VERSION_TYPE}") message("pybind11_INCLUDE_DIRS:
# ${pybind11_INCLUDE_DIRS}") message("pybind11_INCLUDE_DIR:
# ${pybind11_INCLUDE_DIR}") message("pybind11_DEFINITIONS:
# ${pybind11_DEFINITIONS}") message("pybind11_LIBRARIES: ${pybind11_LIBRARIES}")

# message("Python_FOUND: ${Python_FOUND}") message("Python_VERSION:
# ${Python_VERSION}") message("Python_INCLUDE_DIRS: ${Python_INCLUDE_DIRS}")
# message("Python_LIBRARIES: ${Python_LIBRARIES}")

# message("protobuf_FOUND: ${protobuf_FOUND}") message("protobuf_VERSION:
# ${protobuf_VERSION}") message("protobuf_INCLUDE_DIRS:
# ${protobuf_INCLUDE_DIRS}") message("protobuf_SOURCE_DIR:
# ${protobuf_SOURCE_DIR}") message("protobuf_LIBRARIES: ${protobuf_LIBRARIES}")

# ============================================================================
# pybind11_proto_utils pybind11 extension module
pybind11_add_module(
Expand Down

0 comments on commit e388b89

Please sign in to comment.