title: CMAKE_INSTALL_PREFIX environment variable - doesn't work?
body: <p>Some info sources say:</p>
  
  <blockquote>
    <p>You can change the installation directory (prefix) by setting the
    CMAKE_INSTALL_PREFIX environment variable</p>
  </blockquote>
  
  <p>If i do in a file:</p>
  
  <pre><code>export CMAKE_INSTALL_PREFIX=$KDEDIR
  </code></pre>
  
  <p>and then source it, and check if <code>CMAKE_INSTALL_PREFIX</code> environment variable is set, when i do:</p>
  
  <pre><code>vic@wic:~/kde/build/kde-workspace$ cmake ../../src/kde-workspace/
  </code></pre>
  
  <p>and then:</p>
  
  <pre><code>vic@wic:~/kde/build/kde-workspace$ make install
  </code></pre>
  
  <p>it tries to install files to system directories.</p>
  
  <p>If i specify <code>CMAKE_INSTALL_PREFIX</code> as an argument to cmake:</p>
  
  <pre><code>vic@wic:~/kde/build/kde-workspace$ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR ../../src/kde-workspace/
  </code></pre>
  
  <p>then <code>make install</code> works ok - installs files to <code>$KDEDIR</code></p>
  
  <p>Is the documentation wrong about the possibility to set environment variables with the same name, or am i doing something wrong?</p>