Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
3aab96f5
Commit
3aab96f5
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
successfuly compile gRPC with cmake+Ninja
parent
3cdf729e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+7
-1
7 additions, 1 deletion
CMakeLists.txt
templates/CMakeLists.txt.template
+7
-1
7 additions, 1 deletion
templates/CMakeLists.txt.template
with
14 additions
and
2 deletions
CMakeLists.txt
+
7
−
1
View file @
3aab96f5
...
@@ -66,7 +66,13 @@ set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
...
@@ -66,7 +66,13 @@ set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
set
(
gRPC_USE_PROTO_LITE OFF CACHE BOOL
"Use the protobuf-lite library"
)
set
(
gRPC_USE_PROTO_LITE OFF CACHE BOOL
"Use the protobuf-lite library"
)
if
(
MSVC
)
if
(
MSVC
)
add_definitions
(
-D_WIN32_WINNT=0x600
)
add_definitions
(
-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS
)
# needed to compile boringssl
add_definitions
(
/wd4464 /wd4623 /wd4668 /wd4701 /wd4702 /wd4777 /wd5027
)
# needed to compile protobuf
add_definitions
(
/wd4065 /wd4506
)
# TODO(jtattermusch): revisit C4267 occurrences throughout the code
add_definitions
(
/wd4267
)
endif
()
endif
()
if
(
gRPC_USE_PROTO_LITE
)
if
(
gRPC_USE_PROTO_LITE
)
...
...
This diff is collapsed.
Click to expand it.
templates/CMakeLists.txt.template
+
7
−
1
View file @
3aab96f5
...
@@ -84,7 +84,13 @@
...
@@ -84,7 +84,13 @@
set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
if (MSVC)
if (MSVC)
add_definitions( -D_WIN32_WINNT=0x600 )
add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS)
# needed to compile boringssl
add_definitions(/wd4464 /wd4623 /wd4668 /wd4701 /wd4702 /wd4777 /wd5027)
# needed to compile protobuf
add_definitions(/wd4065 /wd4506)
# TODO(jtattermusch): revisit C4267 occurrences throughout the code
add_definitions(/wd4267)
endif()
endif()
if (gRPC_USE_PROTO_LITE)
if (gRPC_USE_PROTO_LITE)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment