Skip to content

Use CMAKE_LINKER_TYPE in CMake 3.29+ #94

Open
@rdong8

Description

@rdong8

The proper way to set the linker in CMake 3.29+ is with this new variable. The example from the bottom of this page suggests something like this (target specific):

set_property(TARGET "${project_name}" PROPERTY LINKER_TYPE "MOLD")

or globally:

set(CMAKE_LINKER_TYPE "MOLD")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions