Guard against more empty cmake generator expressions

ced703c (pull request #2) was incomplete