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

2016-06-19 Thread Young Yang
Thanks :) I think there should be better solutions. But It's the best solution I know so far. On Fri, Jun 17, 2016 at 9:07 PM, Matthew Keeler wrote: > So I did some experimenting. It would seem there are a few rules to the > order installs are executed > > 1 - installs are processed in the orde

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

2016-06-17 Thread Matthew Keeler
So I did some experimenting. It would seem there are a few rules to the order installs are executed 1 - installs are processed in the order the containing CMakeLists.txt files are 2 - within a CMakeLists.txt they seem to be ordered based on which comes first in the file. So a not so elegant worka

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

2016-06-16 Thread Young Yang
Thanks! This command really solve my problem. But I still get a problem about the command order now. I have some sub directories. For e.g. One of them is called "src" and there is also a CMakeLists.txt in it. And the shared library installation instructions are in it. So I have `ADD_SUBDIRECTORY(

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

2016-06-16 Thread Matthew Keeler
CMake won’t and in my opinion shouldn’t implicitly invoke ldconfig for you. There are many scenarios and platforms where this is incorrect behavior and some such as running install to prepare for packaging that CMake wouldn’t reliably be able to detect. If you want to provide the functionality for

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

2016-06-15 Thread Young Yang
Hi, I've encountered some problem when writing install target with cmake. I use `install (TARGETS 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 t