Navigation

  • index
  • next |
  • previous |
  • CMake 4.5.20261112-g6a616b7 »
  • Documentation »
  • cmake-generator-expressions(7) »
  • HOST_LINK

HOST_LINK¶

This generator expression belongs to the Link Context family. See that section for related generator expressions.

Syntax¶

$<HOST_LINK:list>

Added in version 3.18.

Returns the list if it is the normal link step, an empty list otherwise. This expression is mainly useful when a device link step is also involved (see $<DEVICE_LINK:list> generator expression). This expression can only be used to specify link options.

Table of Contents

  • HOST_LINK
    • Syntax

Previous topic

DEVICE_LINK

Next topic

C_COMPILER_LINKER_ID

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • CMake 4.5.20261112-g6a616b7 »
  • Documentation »
  • cmake-generator-expressions(7) »
  • HOST_LINK
© Copyright 2000-2026 Kitware, Inc. and Contributors. Created using Sphinx 9.1.0.