Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
beca1f52
Commit
beca1f52
authored
May 20, 2016
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1575 from wal-rus/cmake-install-msvc
Make cmake configuration file install path configurable
parents
c034ba76
7d79458f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
install.cmake
cmake/install.cmake
+8
-2
No files found.
cmake/install.cmake
View file @
beca1f52
...
...
@@ -83,9 +83,15 @@ foreach(_file ${nobase_dist_proto_DATA})
endforeach
()
# Export configuration
set
(
_cmakedir_desc
"Directory relative to CMAKE_INSTALL to install the cmake configuration files"
)
if
(
NOT MSVC
)
set
(
CMAKE_INSTALL_CMAKEDIR
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/protobuf"
CACHE STRING
"
${
_cmakedir_desc")
else()
set(CMAKE_INSTALL_CMAKEDIR "cmake" CACHE STRING "
${
_cmakedir_desc
}
")
endif()
install(EXPORT protobuf-targets
DESTINATION
"
lib/cmake/protobuf
"
DESTINATION "
${
CMAKE_INSTALL_CMAKEDIR
}
"
COMPONENT protobuf-export)
configure_file(protobuf-config.cmake.in
...
...
@@ -99,5 +105,5 @@ install(FILES
"
${
protobuf_BINARY_DIR
}
/protobuf-config.cmake"
"
${
protobuf_BINARY_DIR
}
/protobuf-config-version.cmake"
"
${
protobuf_BINARY_DIR
}
/protobuf-module.cmake"
DESTINATION
"
lib/cmake/protobuf
"
DESTINATION "
${
CMAKE_INSTALL_CMAKEDIR
}
"
COMPONENT protobuf-export)
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