Navigation

  • index
  • next |
  • previous |
  • CMake 4.0.1 »
  • Documentation »
  • cmake-variables(7) »
  • CMAKE_<LANG>_LINK_WHAT_YOU_USE_FLAG

CMAKE_<LANG>_LINK_WHAT_YOU_USE_FLAGΒΆ

Added in version 3.22.

Linker flag used by LINK_WHAT_YOU_USE to tell the linker to link all shared libraries specified on the command line even if none of their symbols is needed. This is an implementation detail used so that the command in CMAKE_LINK_WHAT_YOU_USE_CHECK can check the binary for unnecessarily-linked shared libraries.

Note

Do not rely on this abstraction to intentionally link to shared libraries whose symbols are not needed.

Previous topic

CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE>_SUPPORTED

Next topic

CMAKE_<LANG>_LINKER_LAUNCHER

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • CMake 4.0.1 »
  • Documentation »
  • cmake-variables(7) »
  • CMAKE_<LANG>_LINK_WHAT_YOU_USE_FLAG
© Copyright 2000-2025 Kitware, Inc. and Contributors. Created using Sphinx 7.3.7.