[CMake] Inconsistency with INSTALL(TARGETS) destinations...

Rolf Eike Beer eike at sf-mail.de
Wed Mar 11 03:32:48 EDT 2015


Am Dienstag, 10. März 2015, 17:48:48 schrieb J Decker:
> > And it's mostly wrong, e.g. lib64 is not correct for many systems. If you
> > want Unix like subdirectories, use the GnuIntallDirs module.
> 
> Better?
> 
> if( WIN32 )
>    install( TARGETS MatrixSSL RUNTIME DESTINATION bin LIBRARY DESTINATION
> bin ARCHIVE DESTINATION lib )
> else( WIN32 )
>    include( GNUInstallDirs )
>    install( TARGETS MatrixSSL DESTINATION ${CMAKE_INSTALL_LIBDIR ) )
> endif( WIN32 )

You don't even need the if(), the module will handle that alone. Just specify 
all 3 flavors since they only overlap for the static lib for the different 
platforms.

Greetings,

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150311/c207aeb4/attachment.sig>


More information about the CMake mailing list