CMAKE_<LANG>_LINK_DEF_FILE_FLAG — CMake 4.4.2 Documentation

# CMAKE_<LANG>_LINK_DEF_FILE_FLAG

Added in version 4.1.

Linker flag to be used to specify a `.def` file for dll creation with the toolchain for language `<LANG>`.

CMake sets this variable automatically during toolchain inspection by calls to the `project()` or `enable_language()` commands.

If the `CMAKE_<LANG>_LINK_DEF_FILE_FLAG` variable is defined, it takes precedence over the language-agnostic `CMAKE_LINK_DEF_FILE_FLAG` variable.