[CMake] Install files at absolute position?

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jan 18 05:16:55 EST 2006


> Von: Zachary Pincus <zpincus at stanford.edu> 
> >> 
> >> I'm wondering if there is any good way to have CMake install a 
> >> particular file at an absolute position in the filesystem (not 
> >> prefixed by CMAKE_INSTALL_PREFIX) during 'make install'. 
> >> 
> > 
> > There is already a bug report about it: 
> > http://www.cmake.org/Bug/bug.php?op=show&bugid=2691&pos=3 
> > 
> > The cmake developers are aware of it. 
>  
> Does anyone know if there is a workaround for this for (a) the time   
> being, and (b) future users without the latest CMake? 
>  
> Thanks, 
 
I didn't try, but maybe set CMAKE_INSTALL_PREFIX to "/" ? 
Or call a script in the post install hook, which does some additional 
installation ? (see SET_TARGET_PROPERTIES) 
There you could call a cmake script after installation which does e.g. 
CONFIGURE_FILE() 
 
Alex 
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the CMake mailing list