title: CMake-Configure: Permission Denied
body: <p>I am trying to compile my Project with CMake, on one of my Computers it works perfectly (a Linux box), but the other one (Windows 7 Ultimate 64) has really problems. </p>
  
  <p>I have tried multpiple generators: </p>
  
  <p>MinGW (standalone and from CodeBlocks):
  Error message: </p>
  
  <p>(Just the part that should lead to a solution)</p>
  
  <pre><code>  f:/tools/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe:
    cannot open output file cmTryCompileExec.exe: Permission denied
  
    collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Visual Studio 10 Professional
  Error Message:</p>
  
  <p>(Again only the Part that may be interesting, i have translated it from german)</p>
  
  <pre><code>CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
    The C compiler "cl" is not able to compile a simple test program.
  [...]
    1&gt;ClCompile:
  
    1&gt; testCCompiler.c
  
    1&gt;LINK : fatal error LNK1104: Datei
    "H:\yps_2\VISUAL\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe" could not be opened.
  </code></pre>
  
  <p>I have Searched google and SO fpr days now and i think no one had some similar Problem like me... </p>
  
  <p>I would be so glad if you could help me guys!</p>
  
  <p>PS: There is another Issue on SO like mine, but it is unanswered:
  <a href="https://stackoverflow.com/questions/7294011/permission-denied-errors-when-using-cmake">https://stackoverflow.com/questions/7294011/permission-denied-errors-when-using-cmake</a></p>