I'm writing makefile, that works with cmake. makefile just creates the build directory and start cmake in it, if build directory is not created yet, or redirects targets to makefile created by cmake, if it already exists. I used mkdir -p
to create a build directory, but it is not cross platform.
Is there any cross platform variant for mkdir -p
? May be cmake provides alternative command, like it does autoconf?