# how to write '@' in configure\_file( "" @ONLY )

**URL:** <https://discourse.cmake.org/t/how-to-write-in-configure-file-only/829>\
**Category:** Code\
**Created:** [March 20, 2020, 3:10pm UTC](https://discourse.cmake.org/t/how-to-write-in-configure-file-only/829 "2020-03-20T15:10:10Z")\
**Posts on this page:** 2\
**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:** [March 20, 2020, 3:10pm UTC](https://discourse.cmake.org/t/how-to-write-in-configure-file-only/829/1 "2020-03-20T15:10:11Z")

</div>

how to write ‘@’ in `configure_file( "@" @ONLY )` ?

`input_file` has the following content:

```auto
@

```

I tried `configure_file( "input_file" @ONLY )` but am receiving `\@`.

---

<div class="post-metadata">

**Author:** ![Angew](https://discourse.cmake.org/user_avatar/discourse.cmake.org/angew/32/229_2.png) [@Angew](https://discourse.cmake.org/u/Angew)\
**Post date:** [March 20, 2020, 3:20pm UTC](https://discourse.cmake.org/t/how-to-write-in-configure-file-only/829/2 "2020-03-20T15:20:48Z")

</div>

I think the easiest solution is to create a CMake variable containing the at-sign and use it:

```
set(AT @)
configure_file("@AT@" @ONLY)
```
