Commit fcfff850 by pybind11_abseil authors Committed by Copybara-Service

Add LD_LIBRARY_PATH install to fix issues with certain build types downstream

PiperOrigin-RevId: 563208705
parent e5cac85b
...@@ -180,7 +180,8 @@ target_link_libraries(status_casters INTERFACE import_status_module ...@@ -180,7 +180,8 @@ target_link_libraries(status_casters INTERFACE import_status_module
add_subdirectory(tests) add_subdirectory(tests)
if(CMAKE_INSTALL_PYDIR) if(CMAKE_INSTALL_PYDIR)
# Copying to two target directories for simplicity. It is currently unknown
# how to determine here which copy is actually being used.
install( install(
TARGETS status ok_status_singleton TARGETS status ok_status_singleton
EXPORT pybind11_abseilTargets EXPORT pybind11_abseilTargets
...@@ -188,4 +189,11 @@ if(CMAKE_INSTALL_PYDIR) ...@@ -188,4 +189,11 @@ if(CMAKE_INSTALL_PYDIR)
ARCHIVE DESTINATION ${CMAKE_INSTALL_PYDIR}/pybind11_abseil ARCHIVE DESTINATION ${CMAKE_INSTALL_PYDIR}/pybind11_abseil
RUNTIME DESTINATION ${CMAKE_INSTALL_PYDIR}/pybind11_abseil) RUNTIME DESTINATION ${CMAKE_INSTALL_PYDIR}/pybind11_abseil)
install(
TARGETS status ok_status_singleton
EXPORT pybind11_abseil_cppTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif() endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment