<div dir="ltr">I see so the proper full path would be <div><br></div><div><div> get_property( existing_outname TARGET ${target} PROPERTY OUTPUT_NAME )</div><div> if( NOT existing_outname )</div><div>
<span class="" style="white-space:pre">        </span> set( existing_outname ${target} )</div><div> endif( NOT existing_outname )</div><div><br></div><div style>DESTINATION lib${LIB_SUFFIX}/${CMAKE_{STATIC,SHARED}_LIBRARY_PREFIX}${existing_outname}${CMAKE_{STATIC,SHARED}_LIBRARY_SUFFIX.</div>
<div style><br></div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 5, 2013 at 8:29 AM, Matthew Woehlke <span dir="ltr"><<a href="mailto:matthew.woehlke@kitware.com" target="_blank">matthew.woehlke@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2013-04-04 19:19, J Decker wrote:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Apr 4, 2013 at 2:25 PM, Matthew Woehlke wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2013-04-04 17:04, J Decker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, you should install to 'lib${LIB_SUFFIX}', not 'lib'. This will allow<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
you (and distros packaging your software) to set LIB_SUFFIX to separate<br>
arch-specific components of 32- and 64-bit builds. E.g. on Linux,<br>
lib_suffix is usually ''/'64' or '32'/'', and on Windows might be<br>
''/'/amd64'.<br>
</blockquote>
<br>
if you're mentioning ${LIB_SUFFIX} you might as well mention ${LIB_PREFIX}<br>
which is the 'lib' prepended on gnuish systems.<br>
</blockquote>
<br>
?<br>
<br>
I'm pretty sure my libraries don't get installed to /usr/liblib64... Maybe<br>
</blockquote>
you are thinking of the file name prefix, which is something different?<br>
<br>
right...but they do go to<br>
/usr/lib64/${CMAKE_[SHARED/<u></u>STATIC]_LIBRARY_PREFIX}...${<u></u>CMAKE_[SHARED/STATIC]_LIBRARY_<u></u>SUFFIX}<br>
</blockquote>
<br></div>
Like I said... LIB_SUFFIX != CMAKE_{STATIC,SHARED}_LIBRARY_<u></u>PREFIX.<br>
<br>
CMAKE_{STATIC,SHARED}_LIBRARY_<u></u>PREFIX is a built-in variable that affects default library file names in the build.<br>
<br>
LIB_SUFFIX is a de facto convention (originating from distro packagers I believe) which is appended to the 'lib' destination directory when installing things into 'lib', in order to conveniently support multi-arch aware systems; e.g. things get installed to /usr/lib64 because they are correctly installed to 'DESTINATION lib${LIB_SUFFIX}' with -DLIB_SUFFIX=64.<div class="HOEnZb">
<div class="h5"><br>
<br>
-- <br>
Matthew<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>