<div dir="ltr"><div><div><div><div><div>Hi, are static libraries able to be added to a component?<br><br></div>The following minimal example doesn't work as I expected:<br><br>CMAKE_MINIMUM_REQUIRED( VERSION 3.0.0 )<br>PROJECT( foo )<br><br>ADD_LIBRARY( foo foo.c )<br>INSTALL( TARGETS foo ARCHIVE DESTINATION lib<br>                     RUNTIME DESTINATION bin<br>                     LIBRARY DESTINATION bin<br>                     COMPONENT bar )<br><br>INCLUDE( CPack )<br><br></div>If I run "make list_install_components" it says "Unspecified"<br><br></div>However, if I add "SHARED" to the ADD_LIBRARY call (or set BUILD_SHARED_LIBS), it lists the component as "bar" which is what I'd expect.<br><br></div>Is this a bug, or by design?  I'm attempting to figure out how I can separate shared/static libraries in my project for different install types.  For example, if I am packaging a binary only install, I don't need to install static libraries, but I would need the runtime libraries.<br><br></div>Dave<br></div>