Offer more platform-agnostic commands
Could cmake offer a standard way to do more tasks? I like my builds to be highly cross-platform. It would be nice to do the equivalent of rm -rf <path>
or mkdir -p <path>
in my cmake tasks without having to worry about the underlying shell.
To be sure, creating and deleting file and directory paths may require different syntax depending on the host environment: PowerShell vs. Command Prompt vs. cygwin vs. WLS (Windows) vs. bash vs. POSIX sh vs. zsh vs. ksh (Linux) vs. csh (BSD), and so on. Could we get standard functions to use in our CMakeLists.txt
files that automatically hook up to the host-appropriate calls?
Edited by Andrew Pennebaker