<div dir="ltr"><div>You are right!<br><br>The documentation quick search for the 
"make_directory" keyword does not find the cmake executable 
documentation (i.e. the make_directory command-line tool), only the 
script command. That tripped me up.<br></div>If you manually go to the cmake executable documentation (<a href="https://cmake.org/cmake/help/v3.6/manual/cmake.1.html" target="_blank">https://cmake.org/cmake/help/<wbr>v3.6/manual/cmake.1.html</a>), you'll find that  "cmake.exe -E make_directory..." is indeed still up to date<br><br><div>Thanks Iosif! Cheers,<br></div>Paulo<div class="gmail-yj6qo gmail-ajU"><div id="gmail-:1n0" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 October 2016 at 00:57, iosif neitzke <span dir="ltr"><<a href="mailto:iosif.neitzke+cmake@gmail.com" target="_blank">iosif.neitzke+cmake@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">I think only the cmake script command make_directory is deprecated, not<br>
the cmake command-line tool -E mode make_directory?<br>
<br>
</span><div><div class="h5">On Tue, Oct 11, 2016 at 5:21 PM, Paulo Waelkens<br>
<<a href="mailto:paulo.waelkens@gmail.com">paulo.waelkens@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> to create a cmake directory at build time<br>
> (<a href="http://stackoverflow.com/questions/3702115/creating-a-directory-in-cmake" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/3702115/creating-a-<wbr>directory-in-cmake</a>)<br>
> you could use<br>
><br>
> add_custom_target(build-time-<wbr>make-directory ALL<br>
>     COMMAND ${CMAKE_COMMAND} -E make_directory ${directory})<br>
><br>
> "make_directory" is now listed as deprecated in the new cmake documentation<br>
> (<a href="https://cmake.org/cmake/help/v3.6/command/make_directory.html" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/<wbr>v3.6/command/make_directory.<wbr>html</a>).<br>
><br>
> How exactly could I repeat the original behaviour without using deprecated<br>
> functionality?<br>
> I understand that I'm supposed to use file(MAKE_DIRECTORY ${directory})<br>
> somehow, but don't understand how exactly to connect this with COMMAND.<br>
><br>
> I've tried to use<br>
> COMMAND ${CMAKE_COMMAND} -E file ...       (definitely wrong, because<br>
> cmake.exe -E <command> [args...] does not list "file" as an available<br>
> command)<br>
> COMMAND file(MAKE_DIRECTORY ${directory})   (wrong, again, 'file' is not<br>
> recognized as an internal or external command)<br>
><br>
> Does anyone know how to do this right? I'll keep using the deprecated stuff<br>
> for now, but that's kind of sad.<br>
><br>
> Thanks for the help! Cheers,<br>
> Paulo<br>
><br>
><br>
</div></div>> --<br>
><br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>