CMAKE__LINK_EXECUTABLE
From Get docs
Cmake/docs/3.21/variable/cmake lang link executable
CMAKE__LINK_EXECUTABLE
Rule variable to link an executable.
Rule variable to link an executable for the given language.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_LANG_LINK_EXECUTABLE.html