<br><br><div class="gmail_quote">On Sat, Jul 3, 2010 at 11:34 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
That cmake variable controls where the compiled library will be placed<br>
during the compilation process not the install process. You will<br>
probably have to use the "install" command to tell cmake that you want<br>
your libraries installed in lib64 instead of lib.<br>
<br>
-----<br>
Mike Jackson <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software Dayton, Ohio<br>
<div><div></div><div class="h5"><br>
On Jul 3, 2010, at 9:46, Enno Fennema <<a href="mailto:e.fennema@tiscali.nl">e.fennema@tiscali.nl</a>> wrote:<br>
<br>
> I am totally new to cmake and struggling.<br>
><br>
> cmake-gui tells me at the end of a Configure<br>
> that libraries will be installed to /usr/local/lib rather than<br>
> /usr/local/lib64 where theu should go.<br>
><br>
> I have added using cmake-gui first try<br>
> CMAKE_OUTPUT_LIBRARY_DIRECTORY=/usr/local/lib64<br>
> and next try<br>
> LIBRARY_OUTPUT_DIRECTORY=/usr/local/lib64<br>
> but cmake-gui keeps telling me<br>
> -- libraries will be installed at: /usr/local/lib<br>
><br>
> What do I change where and how to get the desired behaviour?<br>
><br>
> Thanks for any help.<br>
> Enno<br></div></div></blockquote><div><br>Although, installing in /usr/lib64 is only a convention . E.g. Debian doesn't do it (/usr/lib64 is just a symlink to /usr/lib on 64 bit sytems). You should leave that choice to your users, by e.g. doing this:<br>
<br>set(INSTALL_BIN_DIR bin CACHE PATH "Installation directory for executables")<br>set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries")<br>set(INSTALL_INC_DIR include CACHE PATH "Installation directory for headers")<br>
set(INSTALL_DATA_DIR share/${PROJECT_NAME} CACHE PATH "Installation directory for data files")<br><br>This way you provide reasonable defaults (all of them are relative to CMAKE_INSTALL_PREFIX), but the user can customize them.<br>
<br>HTH<br><br>Michael<br></div></div><br>