diff --git a/CMakeLists.txt b/CMakeLists.txt index ebbe8c3..be8502a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() +