I cannot reproduce your problem. Using exactly same CMakeLists.txt I get the expected result: no need to manually specify the link options.
What is the exact version of the cmake tool ?
I cannot reproduce your problem. Using exactly same CMakeLists.txt I get the expected result: no need to manually specify the link options.
What is the exact version of the cmake tool ?