On 10/13/2014 10:34 AM, Ben Boeckel wrote: > Maybe we need something like the 'trap' shell builtin which runs code on > various triggers That would first require an 'eval' equivalent in CMake, e.g. "cmake_eval()". This has been requested a few times. -Brad