# using sub builds with file API

**URL:** https://discourse.cmake.org/t/using-sub-builds-with-file-api/3380
**Category:** Usage
**Created:** [May 20, 2021, 4:25pm UTC](https://discourse.cmake.org/t/using-sub-builds-with-file-api/3380 "2021-05-20T16:25:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hex](https://discourse.cmake.org/user_avatar/discourse.cmake.org/hex/32/363_2.png) [@hex](https://discourse.cmake.org/u/hex)
#### Post date: [May 20, 2021, 4:25pm UTC](https://discourse.cmake.org/t/using-sub-builds-with-file-api/3380/1 "2021-05-20T16:25:55Z")

</div>

When using the file API for ide integration is it possible to create a build per project for Makefile generators?

I would like to create a sub project from my main build by using a second `project` call.

---

<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 20, 2021, 4:28pm UTC](https://discourse.cmake.org/t/using-sub-builds-with-file-api/3380/2 "2021-05-20T16:28:36Z")

</div>

No, there’s no functionality for that.

---

<div class="post-metadata">

### Author: ![hex](https://discourse.cmake.org/user_avatar/discourse.cmake.org/hex/32/363_2.png) [@hex](https://discourse.cmake.org/u/hex)
#### Post date: [May 20, 2021, 4:38pm UTC](https://discourse.cmake.org/t/using-sub-builds-with-file-api/3380/3 "2021-05-20T16:38:36Z")

</div>

is there a way to add it? I found a bug in Sublime Text generator. Instead of fixing it i thought about using file API, since it provides a lot more configuration features.

---

<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 20, 2021, 4:55pm UTC](https://discourse.cmake.org/t/using-sub-builds-with-file-api/3380/4 "2021-05-20T16:55:31Z")

</div>

I don’t think that kind of thing is likely to happen anytime soon. There are probably a decent amount of behavioral changes to making any `project` call change things like this.
