Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
protobuf-c
Commits
6d2124a1
Commit
6d2124a1
authored
Apr 28, 2024
by
Clément Péron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: properly set PROTOBUF_INCLUDE_DIR in case we use Cmake config
Signed-off-by:
Clément Péron
<
peron.clem@gmail.com
>
parent
e0e9ee16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
build-cmake/CMakeLists.txt
build-cmake/CMakeLists.txt
+1
-0
No files found.
build-cmake/CMakeLists.txt
View file @
6d2124a1
...
...
@@ -23,6 +23,7 @@ find_package(Protobuf CONFIG)
if
(
Protobuf_FOUND
)
# Keep compatibility with FindProtobuf CMake module
set
(
PROTOBUF_PROTOC_EXECUTABLE $<TARGET_FILE:protobuf::protoc>
)
get_target_property
(
PROTOBUF_INCLUDE_DIR protobuf::libprotobuf INCLUDE_DIRECTORIES
)
else
()
message
(
STATUS
"Protobuf CMake config not found fallback to Cmake Module"
)
find_package
(
Protobuf REQUIRED
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment