CMake: only append to LINK_FLAGS if they exist

Prevents an error similar to:
ERROR root: props-NOTFOUND: No such file or directory
Merge pull request #1802 from Daft-Freak/patch-2

CMake: only append to LINK_FLAGS if they exist