<div dir="ltr"><div><div>Hello,<br><br></div>to create a cmake directory <b>at build time</b> (<a href="http://stackoverflow.com/questions/3702115/creating-a-directory-in-cmake">http://stackoverflow.com/questions/3702115/creating-a-directory-in-cmake</a>) you could use<br><br><pre style="margin:0px 0px 1em;padding:5px;border-width:0px;border-style:none;border-color:-moz-use-text-color;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;background-color:rgb(239,240,241);color:rgb(36,39,41);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px"><code style="margin:0px;padding:0px;border-width:0px;border-style:none;border-color:-moz-use-text-color;font-size:13px;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;background-color:rgb(239,240,241);white-space:inherit">add_custom_target(build-time-make-directory ALL
    COMMAND ${CMAKE_COMMAND} -E make_directory ${directory})</code></pre><b>"make_directory"</b> is now listed as deprecated in the new cmake documentation (<a href="https://cmake.org/cmake/help/v3.6/command/make_directory.html">https://cmake.org/cmake/help/v3.6/command/make_directory.html</a>).<br><br>How exactly could I repeat the original behaviour without using deprecated functionality? <br></div><div>I understand that I'm supposed to use <b>file(MAKE_DIRECTORY ${directory})</b> somehow, but don't understand how exactly to connect this with COMMAND.<br></div><div><br></div><div>I've tried to use<br></div><div></div><div><b>COMMAND ${CMAKE_COMMAND} -E file ...       </b>(definitely wrong, because cmake.exe -E <command> [args...] does not list "file" as an available command)<br><b>COMMAND file(MAKE_DIRECTORY ${directory})</b>   (wrong, again, <b>'file' is not recognized as an internal or external command</b>)</div><div><br></div><div>Does anyone know how to do this right? I'll keep using the deprecated stuff for now, but that's kind of sad.<br><br></div><div>Thanks for the help! Cheers,<br></div><div>Paulo<br></div><div><br></div></div>