# compiling CASToR with cmake

**URL:** https://castor-project.discourse.group/t/compiling-castor-with-cmake/150
**Category:** General Discussions
**Created:** [May 23, 2020, 4:09am UTC](https://castor-project.discourse.group/t/compiling-castor-with-cmake/150 "2020-05-23T04:09:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![teymuraz](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@teymuraz](https://castor-project.discourse.group/u/teymuraz)
#### Post date: [May 23, 2020, 4:09am UTC](https://castor-project.discourse.group/t/compiling-castor-with-cmake/150/1 "2020-05-23T04:09:25Z")

</div>

Hello,

I am trying to compile castor\_v3.0.1 using cmake and get the warning that manually specified CASToR\_CONFIG  
is being ignored... I have seen this in previous versions. any suggestions on how to specify an alternate path for config folder at compile time?

Thanks,  
Aram

CMake Warning:  
Manually-specified variables were not used by the project:

```
 CASToR\_CONFIG
 CASToR\_ELASTIX
```

---

<div class="post-metadata">

### Author: ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)
#### Post date: [May 28, 2020, 10:51am UTC](https://castor-project.discourse.group/t/compiling-castor-with-cmake/150/2 "2020-05-28T10:51:38Z")

</div>

Hello Aram,

What is the exact warning message you get ? Normally you can configure the config directory with CASTOR\_CONFIG cmake variable, it should be directly editable using cmake GUI.

Hope this helps,  
Thibaut

Aram Teymurazyan \<[teymuraa@uregina.ca](mailto:teymuraa@uregina.ca)\> a écrit :

---

<div class="post-metadata">

### Author: ![sstute](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sstute](https://castor-project.discourse.group/u/sstute)
#### Post date: [May 28, 2020, 11:41am UTC](https://castor-project.discourse.group/t/compiling-castor-with-cmake/150/3 "2020-05-28T11:41:46Z")

</div>

Hi,

In addition to the setting of the config dir at compilation time with cmake, you can always change it at runtime using the “-conf” option.

Simon

---

<div class="post-metadata">

### Author: ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)
#### Post date: [June 9, 2020, 2:04pm UTC](https://castor-project.discourse.group/t/compiling-castor-with-cmake/150/4 "2020-06-09T14:04:59Z")

</div>

Hello Aram,

These warnings are harmless. You could get rid of the “CASToR\_CONFIG” initialization, the real cmake variable is “CASTOR\_CONFIG”.

Same thing for CASToR\_ELASTIX which was only used by and old development build. It is deprecated now so you can remove it from your cmake command line.

Best regards,  
Thibaut
