New comment by yopito on void-packages repository https://github.com/void-linux/void-packages/issues/20878#issuecomment-612516387 Comment: I was not aware of that. But within its `do_configure()` , cmake.sh (re)changes current dir to $cmake_builddir, so `build_wrksrc` is is not relevant in this case: ``` $ cat -n common/build-style/cmake.sh 1 # 2 # This helper is for templates using cmake. 3 # 4 do_configure() { 5 local cmake_args= 6 [ ! -d ${cmake_builddir:=build} ] && mkdir -p ${cmake_builddir} 7 cd ${cmake_builddir} 8 [...] ```