title: Linux: Why loader finds my shared library?
body: <p>I have compiled a shared library with CMake as a sub project and the main app then links to the library. The library and application are in the same output directory somewhere under my home dir. </p>
  
  <p>Because I'm on Linux I don't now understand why the loader sees my library. </p>
  
  <p>When I check libs with ldd everything is ok. However, I was under the impression that I have to set LD_LIBRARY_PATH so that my application can load the shared lib from the same directory. But I haven't set it and it still works. Why?</p>