fix out-of-source cmake distribution