title: Cmake doesn't respect value of CMAKE_INSTALL_PREFIX
body: <p>I'm trying to install awesome wm from source. So I created a build directory and executed the following command:</p>
  
  <pre><code>cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX
  </code></pre>
  
  <p>But <code>make install</code> tries to put some of the program files in <code>/usr/local/share</code>, which isn't where I want them:</p>
  
  <pre><code>&gt; make install
  [  3%] Built target generated_sources
  [  6%] Built target test-gravity
  [  9%] Built target lgi-check
  [  9%] Built target version_stamp
  [ 29%] Built target generated_icons
  [ 31%] Checking for LGI...
  Building for Lua 5.3.
  Found lgi 0.9.2.
  [ 31%] Built target lgi-check-run
  [ 35%] Built target generate_awesomerc
  [100%] Built target awesome
  Install the project...
  -- Install configuration: ""
  -- Up-to-date: /home/user/.local/bin/awesome
  -- Up-to-date: /home/user/.local/bin/awesome-client
  -- Installing: /usr/local/share/awesome/lib
  CMake Error at cmake_install.cmake:69 (file):
    file INSTALL cannot make directory "/usr/local/share/awesome/lib": No such
    file or directory
  
  
  make: *** [Makefile:107: install] Error 1
  </code></pre>
  
  <p>Is there some cmake variable similar to <code>CMAKE_INSTALL_PREFIX</code> or <code>CMAKE_INSTALL_LIBDIR</code> which I need to specify for <code>share</code> data?</p>