title: How do you fix `cmake .. && make install` "No rule to make target install"?
body: <p>I was trying to use <code>cmake</code> to install some libraries and executables that are built via <code>cmake</code>. </p>
  
  <p>I found <a href="https://stackoverflow.com/q/6003374/52074">What is cmake equivalent of &#39;configure --prefix=DIR &amp;&amp; make all install &#39;?</a> which seemed to be easy. It looked like you just need to set the <code>cmake</code> variable <code>CMAKE_INSTALL_PREFIX</code> and then <code>make install</code> should work.</p>
  
  <p>I found that setting the <code>cmake</code> variable alone did not fix <code>make install</code> and I kept getting the error message "No rule to make target install".</p>
  
  <p><strong>How do you fix <code>cmake .. &amp;&amp; make install</code> "No rule to make target install"?</strong></p>
  
  <p>p.s. <code>cmake</code> version is 2.8.x</p>