fixed cmake for versions without generator expressions (hopefully)