<div dir="ltr">Iosif, that's exactly it, I was not paying attention to the [ ] in the docs!  Thanks for your help.<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 31, 2016 at 2:57 PM, iosif neitzke <span dir="ltr"><<a href="mailto:iosif.neitzke+cmake@gmail.com" target="_blank">iosif.neitzke+cmake@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try something like:<br>
INSTALL( TARGETS foo ARCHIVE DESTINATION lib COMPONENT bar<br>
                     RUNTIME DESTINATION bin COMPONENT bar<br>
<span class="">                     LIBRARY DESTINATION bin COMPONENT bar )<br>
<br>
</span>The nesting of brackets "[]" in docs [0], requires a COMPONENT keyword<br>
and argument (should you choose to use components) for each kind of<br>
target file keyword (ARCHIVE, RUNTIME, LIBRARY, etc..) you use.<br>
<br>
I believe you get the puzzling behavior varying with STATIC versus<br>
SHARED library type because of the way the command is parsed.  When<br>
building a STATIC library, there is only an ARCHIVE, which has no<br>
COMPONENT listed, so you get "Unspecified" when listing components.<br>
When building a SHARED library on non-DLL platforms, the binary is a<br>
LIBRARY target, which has the COMPONENT "bar" listed.<br>
<br>
Each kind of target file keyword (ARCHIVE, RUNTIME, LIBRARY, etc..) has<br>
its own list of subsequent properties.<br>
<br></blockquote></div></div></div></div>