# Linking JOB\_POOL

**URL:** https://discourse.cmake.org/t/linking-job-pool/8007
**Category:** Usage
**Created:** [April 27, 2023, 7:11pm UTC](https://discourse.cmake.org/t/linking-job-pool/8007 "2023-04-27T19:11:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![abdelmaged](https://discourse.cmake.org/user_avatar/discourse.cmake.org/abdelmaged/32/3176_2.png) [@abdelmaged](https://discourse.cmake.org/u/abdelmaged)
#### Post date: [April 27, 2023, 7:11pm UTC](https://discourse.cmake.org/t/linking-job-pool/8007/1 "2023-04-27T19:11:02Z")

</div>

I’ve noticed that CMAKE\_JOB\_POOL\_LINK specifies the pool for static libraries archive step, this step is not always considered as linking, if this is intended, is there a way to specify the job pool for linking executables & shared libraries only without static libraries archiving ?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 1, 2023, 3:17pm UTC](https://discourse.cmake.org/t/linking-job-pool/8007/2 "2023-05-01T15:17:30Z")

</div>

You can unset the `JOB_POOL_LINK` property on `STATIC` libraries to remove them from the pool. The `CMAKE_JOB_POOL_LINK` variable just initializes this property.

---

<div class="post-metadata">

### Author: ![abdelmaged](https://discourse.cmake.org/user_avatar/discourse.cmake.org/abdelmaged/32/3176_2.png) [@abdelmaged](https://discourse.cmake.org/u/abdelmaged)
#### Post date: [May 5, 2023, 12:12am UTC](https://discourse.cmake.org/t/linking-job-pool/8007/3 "2023-05-05T00:12:45Z")

</div>

Unsetting the property could be inconvenient for a project with large set of static libraries.  
Moreover, it may involve some logic to test if BUILD\_SHARED\_LIBS is set or not, which may convert the static library to shared library.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 5, 2023, 12:19pm UTC](https://discourse.cmake.org/t/linking-job-pool/8007/4 "2023-05-05T12:19:53Z")

</div>

`BUILD_SHARED_LIBS` only affects the initial `add_library` call without an explicit request. Once declared, the `TYPE` property is reliable.
