title: Preventing CMake from finding installed libraries instead of "local" libraries
body: <p>I'm working on multiple projects at the same time (some libraries, and some games that depend on them). They're all on GitHub, in separate repos. </p>
  
  <p>For convenience, I pull every repo in a "workspace folder", like this:</p>
  
  <pre><code>/home/myWorkspace/Library1/
  /home/myWorkspace/Library2/
  /home/myWorkspace/Library3/
  /home/myWorkspace/App1/
  /home/myWorkspace/App2/
  </code></pre>
  
  <p>I have <code>FindLibrary1</code>, <code>FindLibrary2</code> and <code>FindLibrary3</code> .cmake files, which, in order, look for the library in <code>../</code> (which corresponds to the "myWorkspace" folder), then <code>/usr/lib/</code>. </p>
  
  <p>While on Windows CMake finds the libraries in <code>myWorkspace/</code>, on Linux, no matter what, installed libraries are always found first. </p>
  
  <p>Since I'd like to work in <code>myWorkspace/</code> folder, then installing the libraries after I'm done, I'd prefer CMake to find and link everything within the <code>myWorkspace/</code> folder. </p>
  
  <p>I'd also like CMake to search for the libraries in <code>/usr/lib/</code> and <code>/usr/local/lib/</code> if there is no <code>myWorkspace/</code> folder, but if <code>myWorkspace/</code> exists, it should have the priority.</p>
  
  <p>Examples of CMake files I'm using:</p>
  
  <hr>
  
  <p>SSVUtils: library with no dependancies</p>
  
  <p>SSVUtils CMakeLists: <a href="https://github.com/SuperV1234/SSVUtils/blob/master/CMakeLists.txt" rel="noreferrer">https://github.com/SuperV1234/SSVUtils/blob/master/CMakeLists.txt</a></p>
  
  <p>FindSSVUtils.cmake: <a href="https://github.com/SuperV1234/SSVUtils/blob/master/cmake/modules/FindSSVUtils.cmake" rel="noreferrer">https://github.com/SuperV1234/SSVUtils/blob/master/cmake/modules/FindSSVUtils.cmake</a></p>
  
  <hr>
  
  <p>SSVUtilsJson: library that depends on SSVUtils and SSVJsonCpp</p>
  
  <p>SSVUtilsJson CMakeLists: <a href="https://github.com/SuperV1234/SSVUtilsJson/blob/master/CMakeLists.txt" rel="noreferrer">https://github.com/SuperV1234/SSVUtilsJson/blob/master/CMakeLists.txt</a></p>
  
  <p>FindSSVUtilsJson.cmake: <a href="https://github.com/SuperV1234/SSVUtilsJson/blob/master/cmake/modules/FindSSVUtilsJson.cmake" rel="noreferrer">https://github.com/SuperV1234/SSVUtilsJson/blob/master/cmake/modules/FindSSVUtilsJson.cmake</a></p>
  
  <hr>
  
  <p>Any ideas how I can prioritize the <code>myWorkspace/</code> folder while still having the possibility to find libs in file system paths?</p>