# The suggestion for CMakeLists.txt

**URL:** https://castor-project.discourse.group/t/the-suggestion-for-cmakelists-txt/243
**Category:** General Discussions
**Created:** [December 7, 2021, 5:30am UTC](https://castor-project.discourse.group/t/the-suggestion-for-cmakelists-txt/243 "2021-12-07T05:30:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Qin\_Lei](https://avatars.discourse-cdn.com/v4/letter/q/ea666f/32.png) [@Qin\_Lei](https://castor-project.discourse.group/u/Qin_Lei)
#### Post date: [December 7, 2021, 5:30am UTC](https://castor-project.discourse.group/t/the-suggestion-for-cmakelists-txt/243/1 "2021-12-07T05:30:12Z")

</div>

Dear CASToR Users and Developers,

![](https://global.discourse-cdn.com/free1/uploads/castor_project/original/1X/600bded36c2356fd9493cd414b62d76614b394f4.png)

The above code snippet that belongs to CMakeLists.txt

I think there need to set the variable first before calling the configure\_file. Because the CASTOR\_CONFIG cannot be defined fine in the `oCASToRConfig.hh` header file when using the CLion + WSL or VS 2022 + WSL. Other environments are fine.

Best Regards,

Qin Lei
