<div dir="ltr">Our project creates a number of dlls that get installed as part of the core component and also has a development library that's an optional install piece. The .lib files only get installed if the development library is selected. <br>
<div><br></div><div>I'm able to get these pieces in different components by specifying the component for both the LIBRARY and ARCHIVE destinations. That seems to work ok. However, we don't want to include .lib files for all of the dlls in the development kit, only those that implement official APIs of the product. If I omit the ARCHIVE designation on the install() command, I get the following error: </div>
<div><br></div><div><div><br></div><div>CMake Error at CMakeLists.txt:887 (install):</div><div> install Library TARGETS given no DESTINATION!</div></div><div><br></div><div>How can I install just the .dll file, or failing that cause the ARCHIVE file portion of the install to end up in a bit-bucket so that NSIS never physically installs it?</div>
<div><br></div><div>Rick</div></div>