please check cmake-utils_use_build() and friends.