Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/release-tag.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tag: xpv3.14.0.4
message: "xpro version 3.14.0.4 tag"
tag: xpv3.14.0.5
message: "xpro version 3.14.0.5 tag"
5 changes: 0 additions & 5 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ if(DEFINED XP_NAMESPACE)
else()
set(CMAKE_NAMESPACE protobuf)
set(CMAKE_OPT_INSTALL TRUE)
if(NOT MSVC)
set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/protobuf")
else()
set(CMAKE_INSTALL_CMAKEDIR "cmake")
endif()
endif()

add_definitions(-DGOOGLE_PROTOBUF_CMAKE_BUILD)
Expand Down
4 changes: 4 additions & 0 deletions cmake/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ endforeach()

# Install configuration
set(_cmakedir_desc "Directory relative to CMAKE_INSTALL to install the cmake configuration files")
if(DEFINED CMAKE_INSTALL_CMAKEDIR)
set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_CMAKEDIR}" CACHE STRING "${_cmakedir_desc}")
else()
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()
endif()
mark_as_advanced(CMAKE_INSTALL_CMAKEDIR)

configure_file(protobuf-config.cmake.in
Expand Down