[CMake] Installing and Exporting for multiple configurations

J Decker d3ck0r at gmail.com
Thu Apr 4 19:19:03 EDT 2013


On Thu, Apr 4, 2013 at 2:25 PM, Matthew Woehlke <matthew.woehlke at kitware.com
> wrote:

> On 2013-04-04 17:04, J Decker wrote:
>
>> Also, you should install to 'lib${LIB_SUFFIX}', not 'lib'. This will allow
>>> you (and distros packaging your software) to set LIB_SUFFIX to separate
>>> arch-specific components of 32- and 64-bit builds. E.g. on Linux,
>>> lib_suffix is usually ''/'64' or '32'/'', and on Windows might be
>>> ''/'/amd64'.
>>>
>>
>> if you're mentioning ${LIB_SUFFIX} you might as well mention ${LIB_PREFIX}
>> which is the 'lib' prepended on gnuish systems.
>>
>
> ?
>
> I'm pretty sure my libraries don't get installed to /usr/liblib64... Maybe
> you are thinking of the file name prefix, which is something different?
>
>
right...but they do go to
/usr/lib64/${CMAKE_[SHARED/STATIC]_LIBRARY_PREFIX}...${CMAKE_[SHARED/STATIC]_LIBRARY_SUFFIX}

So anyway, which suffix is LIB_SUFFIX?  STATIC or SHARED?


>
> --
> Matthew
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130404/1b9226d5/attachment-0001.htm>


More information about the CMake mailing list