Previous commit has added `link_options` to the root CMakeLists.txt, can use it to collect such global link options now.