I asked this question before (How to add a dependency on a file for the configure step of ExternalProject_Add in cmake) for the configure step.
Unfortunately, the answer that I got there does not work for the 'mkdir' step:
ExternalProject_Add_StepDependencies(
gitache_package_libcwd_r
download "/opt/gitache/libcwd_r/gitache-lock"
)
works fine, but when I use the internal (Using an ExternalProject download step with Ninja) step 'mkdir':
ExternalProject_Add_StepDependencies(
gitache_package_libcwd_r
mkdir "/opt/gitache/libcwd_r/gitache-lock"
)
I get the error:
CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2273 (message):
External project "gitache_package_libcwd_r" does not have a step "mkdir".
How can I do this?