title: How to conveniently force CMAKE to use a particular build of static library file?
body: <p>I current have an open source 3rd party library A installed in \usr\local. Now I want to experiment some code change on this library but I want to do this test in a local folder so it won't affect the system library. Let us call the local build A'. </p>
  
  <p>I have an executable B which uses library A as static library. In CMakelists.txt, it used find_pacakge(A) to find the one installed in \usr\local. What is the easiest way to make it link to A' in the local folder ?</p>
  
  <p>I figured out if I INSTALL A' to a local folder (or any folder different from usr\local), we can force CMAKE to find package in that folder by using HINTS. However, I hope there is a better way without even installing. After 
  all, A and A' are using the same header files and just located in different locations. So I assume the include_directories doesn't need to be changed. But I don't know how to link the library to a specified file in a specified folder instead of the default system folder found from find_package.</p>
  
  <p>Really a newbie in Cmake, I hope I made myself clear. Thanks a lot</p>