# How to add a third party lib to a lib built by cmake and get a new lib as output?

**URL:** https://discourse.cmake.org/t/how-to-add-a-third-party-lib-to-a-lib-built-by-cmake-and-get-a-new-lib-as-output/13605
**Category:** Usage
**Tags:** os:windows
**Created:** [February 19, 2025, 1:46pm UTC](https://discourse.cmake.org/t/how-to-add-a-third-party-lib-to-a-lib-built-by-cmake-and-get-a-new-lib-as-output/13605 "2025-02-19T13:46:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leso](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@leso](https://discourse.cmake.org/u/leso)
#### Post date: [February 19, 2025, 1:46pm UTC](https://discourse.cmake.org/t/how-to-add-a-third-party-lib-to-a-lib-built-by-cmake-and-get-a-new-lib-as-output/13605/1 "2025-02-19T13:46:25Z")

</div>

When I search online for this matter I only see how to link libs together with the target\_link\_libraries() function. My understanding is that this will link the libs and produce an executable as output. I want to to have a new lib as output since I’m rewriting an old build system and want cmake behave as much as possible like the old one.
