simplify C++ triggering for static install