title: Access denied to cmake and Visual studio
body: <p>I am facing a very frustrating access denied error without any other information.</p>
  
  <p>I have <code>git clone</code> 'd a repository to a folder, naimly to <code>~\Desktop\bempp</code>. When i try to <code>cmake</code> by typing in the cmd <code>cmake -DCMAKE_INSTALL_PREFIX=&lt;install_dir&gt; ..</code> I get an error message Access denied. install_dir is <code>~\Desktop\bempp</code> . Instructions are here under the title compiling bem++:<a href="http://www.bempp.org/installation.html" rel="nofollow noreferrer">http://www.bempp.org/installation.html</a></p>
  
  <p>I also tried to cmake with the gui (it succeeded), then build with visual studio (succeeded again), but once more when I try to run it I get: 
  Unable to start program ~\bem\x64\Release\ALL_BUILD access denied. </p>
  
  <p>I tried to remove the read-only nature of the folder and the subfolders, but they come back automatically. After more googling it turns out that attrib has to be used: </p>
  
  <p>my call is: </p>
  
  <pre><code>attrib -r +s C:\Users\nempa001\Desktop\bempp /s /d
  </code></pre>
  
  <p>The call simply does <strong><em>not</em></strong> work. Apart from not working recursively as said in each description page (check this) <a href="https://www.lifewire.com/attrib-command-2625802" rel="nofollow noreferrer">https://www.lifewire.com/attrib-command-2625802</a> , even if I <code>attrib +s</code> each one of the folders in the path shown in the Visual studio message (these attrib call succeed, I check it through attrib ), I still get the same error from Visual Studio.</p>
  
  <p>I am the owner of the folder in <strong>properties</strong> and also I have <strong>full control</strong> rights and there is system endpoint center protection on my computer(maybe irrelevant). This whole situation makes zero sense.</p>
  
  <p>Am I towards the right direction? I am totally out of ideas, can anyone propose a solution? </p>