Skip to content

Commit

Permalink
Update CMakeLists to run ldconfig on install
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake authored Oct 26, 2024
1 parent 3629a52 commit d00d762
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -666,3 +666,9 @@ if(NOT TARGET uninstall)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()

# Run ldconfig for certain Unix systems
if(UNIX AND NOT APPLE)
install(CODE "exec_program(ldconfig)")
endif()

0 comments on commit d00d762

Please sign in to comment.