# How do i include an optional site fcm-make.cfg file?

**URL:** <https://cylc.discourse.group/t/how-do-i-include-an-optional-site-fcm-make-cfg-file/594>\
**Category:** Rose Support\
**Created:** [February 9, 2023, 1:22am UTC](https://cylc.discourse.group/t/how-do-i-include-an-optional-site-fcm-make-cfg-file/594 "2023-02-09T01:22:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [February 9, 2023, 1:22am UTC](https://cylc.discourse.group/t/how-do-i-include-an-optional-site-fcm-make-cfg-file/594/1 "2023-02-09T01:22:42Z")

</div>

hi there,

i know how to include an optional site config file of the form…

`app/foo/opt/rose-app-mysite.conf`

… but i would like to include an optional site `fcm-make.cfg` file, that is…

`app/foo/file/fcm-make-mysite.cfg`

i need to be able to use the options in `fcm-make-mysite.cfg` rather than the default `fcm-make.cfg`.

is there a way to do this?

thanks in advance for any tips. 😄

jonny

---

<div class="post-metadata">

**Author:** ![dpmatthews](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/dpmatthews/32/26_2.png) [@dpmatthews](https://cylc.discourse.group/u/dpmatthews)\
**Post date:** [February 9, 2023, 7:35am UTC](https://cylc.discourse.group/t/how-do-i-include-an-optional-site-fcm-make-cfg-file/594/2 "2023-02-09T07:35:56Z")

</div>

From what I can see, the fcm make built in app will always use `file/fcm-make.cfg`.  
[https://metomi.github.io/rose/doc/html/api/built-in/fcm\_make.html](https://metomi.github.io/rose/doc/html/api/built-in/fcm_make.html)  
However, that file can include further files which can be set via an environment variable (which can be set in an optional config). I suggest you have a look at the approach taken for supporting different platforms in the UM rose stem workflow (e.g. the `fcm_make_um` app).

---

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [February 10, 2023, 4:04am UTC](https://cylc.discourse.group/t/how-do-i-include-an-optional-site-fcm-make-cfg-file/594/3 "2023-02-10T04:04:54Z")

</div>

thanks a lot @dpmatthews,

i got there in the end using basically what you suggested. in the `rose-app-mysite.conf` file you can tell it what file to use for the `fcm-make.cfg`, that is…

```auto
> fcm cat fcm:roses-u.x/c/p/8/3/0/NIWA/app/fcm_make_um/opt/rose-app-niwa_cray.conf@248761|grep 'fcm-make'
[file:fcm-make.cfg]
source=$ROSE_SUITE_DIR/app/fcm_make_um/file/fcm-make_niwa_cray.cfg

```

thanks for your help!

jonny
