# SF.net SVN: avogadro: trunk

**URL:** <https://discuss.avogadro.cc/t/sf-net-svn-avogadro-trunk/647>\
**Category:** Development\
**Created:** [September 6, 2007, 4:24pm UTC](https://discuss.avogadro.cc/t/sf-net-svn-avogadro-trunk/647 "2007-09-06T16:24:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [September 6, 2007, 4:24pm UTC](https://discuss.avogadro.cc/t/sf-net-svn-avogadro-trunk/647/1 "2007-09-06T16:24:30Z")

</div>

On Sep 6, 2007, at 12:20 PM, [benoitjacob@users.sourceforge.net](mailto:benoitjacob@users.sourceforge.net) wrote:

> Let CMake produce a special header file definining a string  
> SVN\_REVISION\_STRING.  
> The header is installed at $CMAKE\_INSTALL\_PREFIX/include/avogadro/  
> svn.h  
> This allows applications using libavogadro to be aware of which  
> revision they are using.

This is a great idea, since it makes the About box more useful –  
both the “install version” (e.g., 0.2) and the SVN build revision.

But when I tried it, on running cmake, it immediately tried to  
install the header:

CMake Error: Could not open file for write in copy operation /usr/  
local/include/avogadro/svn.h.tmp  
CMake Error: : System Error: Permission denied

Shouldn’t we create a temporary svn.h in the libavogadro src/build  
directories and install later? I think most people will be surprised  
that they need to run cmake as root.

Cheers,  
-Geoff

---

<div class="post-metadata">

**Author:** ![Benoit\_Jacob](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/b/e9c0ed/32.png) [@Benoit\_Jacob](https://discuss.avogadro.cc/u/Benoit_Jacob)\
**Post date:** [September 6, 2007, 4:44pm UTC](https://discuss.avogadro.cc/t/sf-net-svn-avogadro-trunk/647/2 "2007-09-06T16:44:41Z")

</div>

On Thursday 06 September 2007 18:24:30 Geoffrey Hutchison wrote:

> But when I tried it, on running cmake, it immediately tried to  
> install the header:
> 
> CMake Error: Could not open file for write in copy operation /usr/  
> local/include/avogadro/svn.h.tmp  
> CMake Error: : System Error: Permission denied

Yeah, Simon had the same problem. svn up and retry now 🙂

> Shouldn’t we create a temporary svn.h in the libavogadro src/build

exactly what i did in the second commit 🙂

> directories and install later?

currently it’s no longer installed (since the second commit). Feel free to  
make svn.h installed if you think this can be useful to more apps than just  
avogadro.

Benoit
