[CMake] cmake install target doesn't run ldconfig after installing library

Young Yang afe.young at gmail.com
Wed Jun 15 22:11:40 EDT 2016


Hi,
I've encountered some problem when writing install target with cmake.

I use `install (TARGETS <my_shared_library> DESTINATION lib)` to install my
shared_library.
However, when I run `make install`. It just install the .so to
/usr/local/lib and didn't run the ldconfig.

I think it is strange and inconvenient to tell the user he should run
ldconfig by himself or herself.

What is the best way to make the ldconfig run automatically?


Thanks in advance :)

-- 
Best wishes,
Young Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160616/067b4aa4/attachment.html>


More information about the CMake mailing list