Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3509422
D5686.id18885.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5686.id18885.diff
View Options
diff --git a/shared/protos/CMakeLists.txt b/shared/protos/CMakeLists.txt
--- a/shared/protos/CMakeLists.txt
+++ b/shared/protos/CMakeLists.txt
@@ -71,24 +71,28 @@
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
- install(TARGETS ${LIB_NAME} EXPORT comm-grpc-export
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${LIB_NAME}
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${LIB_NAME}
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${LIB_NAME}
- )
+ if(NOT ANDROID_NDK)
+ install(TARGETS ${LIB_NAME} EXPORT comm-grpc-export
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${LIB_NAME}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${LIB_NAME}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${LIB_NAME}
+ )
- # ensure headers are also installed
- install(FILES ${PROTO_HDRS} DESTINATION include/comm/grpc)
+ # ensure headers are also installed
+ install(FILES ${PROTO_HDRS} DESTINATION include/comm/grpc)
+ endif()
endforeach()
-export(TARGETS ${TARGETS}
- NAMESPACE comm::
- FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/comm/comm-grpc-targets.cmake
-)
+if(NOT ANDROID_NDK)
+ export(TARGETS ${TARGETS}
+ NAMESPACE comm::
+ FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/comm/comm-grpc-targets.cmake
+ )
-# For installation
-install(EXPORT comm-grpc-export
- FILE comm-grpc-targets.cmake
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/comm-grpc
- NAMESPACE comm::
-)
+ # For installation
+ install(EXPORT comm-grpc-export
+ FILE comm-grpc-targets.cmake
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/comm-grpc
+ NAMESPACE comm::
+ )
+endif()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 4:38 AM (11 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690188
Default Alt Text
D5686.id18885.diff (1 KB)
Attached To
Mode
D5686: [Cmake] Avoid installing targets when used by Android build
Attached
Detach File
Event Timeline
Log In to Comment