title: What are the best practices on editing CMake files? Portability issue
body: <p>As an example, I have a package that uses common libraries like boost and opencv. I have installed these packages in special locations like <code>~/libs/boost/build</code>, in contrast to <code>/usr/local</code> default locations.</p>
  
  <p>In my package CMake I call boost and open cv with `` SET (BOOST_INCLUDEDIR "~/libs/boost/.../build/include")'</p>
  
  <p>The issue is as such my package is not portable in the sense the user who would try to use it would have to modify it, i.e. to modify <code>~/libs/boost/.../build/include</code></p>
  
  <p>Thus, my question is how to edit CMake or .bashrc such that my package would be portable?</p>