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
f691556d
Commit
f691556d
authored
7 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
dont reuse protobuf cmake install dirs
parent
456b713f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/CMakeLists.txt.template
+12
-12
12 additions, 12 deletions
templates/CMakeLists.txt.template
with
12 additions
and
12 deletions
templates/CMakeLists.txt.template
+
12
−
12
View file @
f691556d
...
@@ -73,6 +73,11 @@
...
@@ -73,6 +73,11 @@
set(PACKAGE_TARNAME "<%text>${PACKAGE_NAME}-${PACKAGE_VERSION}</%text>")
set(PACKAGE_TARNAME "<%text>${PACKAGE_NAME}-${PACKAGE_VERSION}</%text>")
set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
project(<%text>${PACKAGE_NAME}</%text> C CXX)
project(<%text>${PACKAGE_NAME}</%text> C CXX)
set(gRPC_INSTALL_BINDIR "<%text>${CMAKE_INSTALL_PREFIX}</%text>/bin" CACHE PATH "Installation directory for executables")
set(gRPC_INSTALL_LIBDIR "<%text>${CMAKE_INSTALL_PREFIX}</%text>/lib" CACHE PATH "Installation directory for libraries")
set(gRPC_INSTALL_INCLUDEDIR "<%text>${CMAKE_INSTALL_PREFIX}</%text>/include" CACHE PATH "Installation directory for headers")
set(gRPC_INSTALL_CMAKEDIR "<%text>${CMAKE_INSTALL_PREFIX}/lib/cmake/${PACKAGE_NAME}</%text>" CACHE PATH "Installation directory for cmake config files")
# Options
# Options
option(gRPC_BUILD_TESTS "Build tests" OFF)
option(gRPC_BUILD_TESTS "Build tests" OFF)
...
@@ -335,11 +340,6 @@
...
@@ -335,11 +340,6 @@
set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
endif()
endif()
include(GNUInstallDirs)
if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
set(CMAKE_INSTALL_CMAKEDIR "<%text>${CMAKE_INSTALL_LIBDIR}</%text>/cmake/gRPC")
endif()
# Create directory for generated .proto files
# Create directory for generated .proto files
set(_gRPC_PROTO_GENS_DIR <%text>${CMAKE_BINARY_DIR}/gens</%text>)
set(_gRPC_PROTO_GENS_DIR <%text>${CMAKE_BINARY_DIR}/gens</%text>)
file(MAKE_DIRECTORY <%text>${_gRPC_PROTO_GENS_DIR}</%text>)
file(MAKE_DIRECTORY <%text>${_gRPC_PROTO_GENS_DIR}</%text>)
...
@@ -500,7 +500,7 @@
...
@@ -500,7 +500,7 @@
)
)
if (gRPC_INSTALL)
if (gRPC_INSTALL)
install(FILES <%text>${CMAKE_CURRENT_BINARY_DIR}/</%text>${lib.name}.pdb
install(FILES <%text>${CMAKE_CURRENT_BINARY_DIR}/</%text>${lib.name}.pdb
DESTINATION <%text>${
CMAKE
_INSTALL_LIBDIR}</%text> OPTIONAL
DESTINATION <%text>${
gRPC
_INSTALL_LIBDIR}</%text> OPTIONAL
)
)
endif()
endif()
endif()
endif()
...
@@ -554,7 +554,7 @@
...
@@ -554,7 +554,7 @@
string(REPLACE "include/" "" _path <%text>${_hdr}</%text>)
string(REPLACE "include/" "" _path <%text>${_hdr}</%text>)
get_filename_component(_path <%text>${_path}</%text> PATH)
get_filename_component(_path <%text>${_path}</%text> PATH)
install(FILES <%text>${_hdr}</%text>
install(FILES <%text>${_hdr}</%text>
DESTINATION "<%text>${
CMAKE
_INSTALL_INCLUDEDIR}/${_path}</%text>"
DESTINATION "<%text>${
gRPC
_INSTALL_INCLUDEDIR}/${_path}</%text>"
)
)
endforeach()
endforeach()
% endif
% endif
...
@@ -622,16 +622,16 @@
...
@@ -622,16 +622,16 @@
<%def name="cc_install(tgt)">
<%def name="cc_install(tgt)">
if (gRPC_INSTALL)
if (gRPC_INSTALL)
install(TARGETS ${tgt.name} EXPORT gRPCTargets
install(TARGETS ${tgt.name} EXPORT gRPCTargets
RUNTIME DESTINATION <%text>${
CMAKE
_INSTALL_BINDIR}</%text>
RUNTIME DESTINATION <%text>${
gRPC
_INSTALL_BINDIR}</%text>
LIBRARY DESTINATION <%text>${
CMAKE
_INSTALL_LIBDIR}</%text>
LIBRARY DESTINATION <%text>${
gRPC
_INSTALL_LIBDIR}</%text>
ARCHIVE DESTINATION <%text>${
CMAKE
_INSTALL_LIBDIR}</%text>
ARCHIVE DESTINATION <%text>${
gRPC
_INSTALL_LIBDIR}</%text>
)
)
endif()
endif()
</%def>
</%def>
if (gRPC_INSTALL)
if (gRPC_INSTALL)
install(EXPORT gRPCTargets
install(EXPORT gRPCTargets
DESTINATION <%text>${
CMAKE
_INSTALL_CMAKEDIR}</%text>
DESTINATION <%text>${
gRPC
_INSTALL_CMAKEDIR}</%text>
NAMESPACE gRPC::
NAMESPACE gRPC::
)
)
endif()
endif()
...
@@ -640,6 +640,6 @@
...
@@ -640,6 +640,6 @@
configure_file(tools/cmake/<%text>${_config}</%text>.cmake.in
configure_file(tools/cmake/<%text>${_config}</%text>.cmake.in
<%text>${_config}</%text>.cmake @ONLY)
<%text>${_config}</%text>.cmake @ONLY)
install(FILES <%text>${CMAKE_CURRENT_BINARY_DIR}/${_config}</%text>.cmake
install(FILES <%text>${CMAKE_CURRENT_BINARY_DIR}/${_config}</%text>.cmake
DESTINATION <%text>${
CMAKE
_INSTALL_CMAKEDIR}</%text>
DESTINATION <%text>${
gRPC
_INSTALL_CMAKEDIR}</%text>
)
)
endforeach()
endforeach()
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