title: Stopping CMake prepend 'lib' to libs makes the lib not foundable
body: <p>I want my libraries to be generated as lib-something.so.1.0.0 and not liblib-something.so.1.0.0. For this, I used the proposals from this link: <a href="https://stackoverflow.com/questions/41804282/stop-cmake-from-prepending-lib-to-library-names">stop_preppending_'lib'_to_libs</a>. But it seems that CMake is not able to find the library anymore.</p>
  
  <p>This is what I did:</p>
  
  <p>lib-something/src/CMakeLists.txt:</p>
  
  <pre><code>add_library(lib-something SHARED
      ${CMAKE_CURRENT_SOURCE_DIR}/Something.cpp )
  
  set_target_properties(lib-something PROPERTIES PREFIX "")
  </code></pre>
  
  <p>lib-another/src/CMakeLists.txt:</p>
  
  <blockquote>
    <p>add_dependencies(lib-another lib-something)</p>
  </blockquote>
  
  <p>It is able to find it if I do: </p>
  
  <blockquote>
    <p>add_dependencies(lib-another something)</p>
  </blockquote>
  
  <p>altough my target is named 'lib-something'. I don't want that. If I were okey with having to add dependencies as 'something' I would have removed the 'lib' from the target name and it would have been enough. I find this an easy way to be identified by the users as libraries and not executables.</p>
  
  <p>Any ideas?</p>
  
  <p>Edited:
  I also tried this:</p>
  
  <pre><code>add_library(something SHARED
          ${CMAKE_CURRENT_SOURCE_DIR}/Something.cpp )
  set_target_properties(something PROPERTIES OUTPUT_NAME "lib-something")
  </code></pre>
  
  <p>In other projects:</p>
  
  <pre><code>add_dependencies(lib-another lib-something)
  </code></pre>
  
  <p><em>It works, but it looks that the generation of the libraries is also liblib...</em></p>
  
  <p>As far as I have seen, there is no way to avoid this 'liblib' thing without changing the prefix into "", and if this prefix is changed then the library is not found no matter what.</p>