cmake / 3.23 / variable / cmake_link_libraries_only_targets.html

CMAKE_LINK_LIBRARIES_ONLY_TARGETS

Set this variable to initialize the LINK_LIBRARIES_ONLY_TARGETS property of non-imported targets when they are created. Setting it to true enables an additional check that all items named by target_link_libraries() that can be target names are actually names of existing targets. See the target property documentation for details.

© 2000–2022 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.23/variable/CMAKE_LINK_LIBRARIES_ONLY_TARGETS.html