Ah, yes. CMake APIs certainly do make it more difficult. Yes, something along those lines would be what I would recommend for a proper fix. VTK does it by having the APIs detect the host-side tools and using them if they’re available. Not perfect, but I don’t have a better solution on hand.