<div dir="ltr"><div><div>Do you even *have* any LIBRARY targets on Windows? Quoting the docs (<a href="http://www.cmake.org/cmake/help/v3.2/command/install.html#installing-targets">http://www.cmake.org/cmake/help/v3.2/command/install.html#installing-targets</a>):<br><br>"Static libraries are always treated as <tt class=""><span class="">ARCHIVE</span></tt>
targets.  Module libraries are always treated as <tt class=""><span class="">LIBRARY</span></tt> targets.
For non-DLL platforms shared libraries are treated as <tt class=""><span class="">LIBRARY</span></tt>
targets, except that those marked with the <tt class=""><span class="">FRAMEWORK</span></tt> property are
treated as <tt class=""><span class="">FRAMEWORK</span></tt> targets on OS X.  For DLL platforms the DLL
part of a shared library is treated as a <tt class=""><span class="">RUNTIME</span></tt> target and the
corresponding import library is treated as an <tt class=""><span class="">ARCHIVE</span></tt> target.
All Windows-based systems including Cygwin are DLL platforms."<br><br></div>Unless you're building MODULE libraries, you'll normally only have RUNTIME (.dll) and ARCHIVE (.lib) targets on Windows, and LIBRARY (.so) and ARCHIVE (.a) targets on Unixes.<br><br></div>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 11, 2015 at 8:32 AM, Rolf Eike Beer <span dir="ltr"><<a href="mailto:eike@sf-mail.de" target="_blank">eike@sf-mail.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Dienstag, 10. März 2015, 17:48:48 schrieb J Decker:<br>
<span class="">> > And it's mostly wrong, e.g. lib64 is not correct for many systems. If you<br>
> > want Unix like subdirectories, use the GnuIntallDirs module.<br>
><br>
> Better?<br>
><br>
> if( WIN32 )<br>
>    install( TARGETS MatrixSSL RUNTIME DESTINATION bin LIBRARY DESTINATION<br>
> bin ARCHIVE DESTINATION lib )<br>
> else( WIN32 )<br>
>    include( GNUInstallDirs )<br>
>    install( TARGETS MatrixSSL DESTINATION ${CMAKE_INSTALL_LIBDIR ) )<br>
> endif( WIN32 )<br>
<br>
</span>You don't even need the if(), the module will handle that alone. Just specify<br>
all 3 flavors since they only overlap for the static lib for the different<br>
platforms.<br>
<br>
Greetings,<br>
<br>
Eike<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>