Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159219
cmake-install-path.patch
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
cmake-install-path.patch
View Options
diff --git a/cmake/install.cmake b/cmake/install.cmake
index 9dd6e77..3c2e769 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -127,24 +127,20 @@ configure_file(protobuf-options.cmake
if (protobuf_BUILD_PROTOC_BINARIES)
export(TARGETS libprotobuf-lite libprotobuf libprotoc protoc
NAMESPACE protobuf::
- FILE ${CMAKE_INSTALL_CMAKEDIR}/protobuf-targets.cmake
+ FILE ${CMAKE_CURRENT_BINARY_DIR}/protobuf-targets.cmake
)
else (protobuf_BUILD_PROTOC_BINARIES)
export(TARGETS libprotobuf-lite libprotobuf
NAMESPACE protobuf::
- FILE ${CMAKE_INSTALL_CMAKEDIR}/protobuf-targets.cmake
+ FILE ${CMAKE_CURRENT_BINARY_DIR}/protobuf-targets.cmake
)
endif (protobuf_BUILD_PROTOC_BINARIES)
install(EXPORT protobuf-targets
DESTINATION "${CMAKE_INSTALL_CMAKEDIR}"
+ FILE protobuf-targets.cmake
NAMESPACE protobuf::
- COMPONENT protobuf-export)
-
-install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_CMAKEDIR}/
- DESTINATION "${CMAKE_INSTALL_CMAKEDIR}"
COMPONENT protobuf-export
- PATTERN protobuf-targets.cmake EXCLUDE
)
option(protobuf_INSTALL_EXAMPLES "Install the examples folder" OFF)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Dec 7, 4:28 PM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5691352
Default Alt Text
cmake-install-path.patch (1 KB)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment