Don't use add_link_options() on old CMake versions

Fixes: #2315
1 file changed