# Partial linking

**URL:** <https://discourse.cmake.org/t/partial-linking/5556>\
**Category:** Code\
**Created:** [April 27, 2022, 9:43am UTC](https://discourse.cmake.org/t/partial-linking/5556 "2022-04-27T09:43:06Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![fdk17](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@fdk17](https://discourse.cmake.org/u/fdk17)\
**Post date:** [January 25, 2024, 6:49pm UTC](https://discourse.cmake.org/t/partial-linking/5556/9 "2024-01-25T18:49:30Z")

</div>

See [set\_source\_file\_properties and generator expressions to support partial linking executables - Usage - CMake Discourse](https://discourse.cmake.org/t/set-source-file-properties-and-generator-expressions-to-support-partial-linking-executables/9932) on how I approached performing partial linking.

I think using `add_exeuctable` is the natural way of creating a partially linked executable.

FYI, you can set the target SUFFIX property, and others, to alter the executable name. In GHS tools when you perform the final link the executable needs to end in a `.o` suffix.

---

_[View the full topic](https://discourse.cmake.org/t/partial-linking/5556)._
