mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-build/ignition-cmake: use proper patch to find protobuf
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
13
dev-build/ignition-cmake/files/protobuf2.patch
Normal file
13
dev-build/ignition-cmake/files/protobuf2.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: gz-cmake-ignition-cmake2_2.17.2/cmake/FindIgnProtobuf.cmake
|
||||
===================================================================
|
||||
--- gz-cmake-ignition-cmake2_2.17.2.orig/cmake/FindIgnProtobuf.cmake
|
||||
+++ gz-cmake-ignition-cmake2_2.17.2/cmake/FindIgnProtobuf.cmake
|
||||
@@ -31,7 +31,7 @@ find_package(Protobuf ${IgnProtobuf_FIND
|
||||
if(NOT ${Protobuf_FOUND})
|
||||
# If a config-file was not found, then fall back on the system-installed
|
||||
# find-module that comes with CMake.
|
||||
- find_package(Protobuf ${IgnProtobuf_FIND_VERSION})
|
||||
+ find_package(Protobuf CONFIG REQUIRED)
|
||||
endif()
|
||||
|
||||
set(IgnProtobuf_missing_components "")
|
||||
@@ -14,6 +14,7 @@ SLOT="2"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
PATCHES=( "${FILESDIR}/protobuf2.patch" )
|
||||
S="${WORKDIR}/gz-cmake-${PN}2_${PV}"
|
||||
|
||||
src_configure() {
|
||||
|
||||
Reference in New Issue
Block a user