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
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
