Skip to content

Commit

Permalink
Add LD_LIBRARY_PATH install to fix issues with certain build types do…
Browse files Browse the repository at this point in the history
…wnstream

PiperOrigin-RevId: 563208705
  • Loading branch information
pybind11_abseil authors authored and copybara-github committed Sep 6, 2023
1 parent e5cac85 commit fcfff85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pybind11_abseil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,20 @@ target_link_libraries(status_casters INTERFACE import_status_module
add_subdirectory(tests)

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(
TARGETS status ok_status_singleton
EXPORT pybind11_abseilTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_PYDIR}/pybind11_abseil
ARCHIVE 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()

0 comments on commit fcfff85

Please sign in to comment.