CMAKE_LINK_DEF_FILE_FLAG
Linker flag to be used to specify a .def file for dll creation.
The flag will be used to add a .def file when creating a dll on Windows; this is only defined on Windows.
CMake sets this variable automatically during toolchain inspection by calls to the project() or enable_language() commands.
If the per-language CMAKE_<LANG>_LINK_DEF_FILE_FLAG variable is defined, it takes precedence over CMAKE_LINK_DEF_FILE_FLAG.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/variable/CMAKE_LINK_DEF_FILE_FLAG.html