On 24.05.2014 16:51, Rick McGuire wrote:
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.
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:
CMake Error at CMakeLists.txt:887 (install):
install Library TARGETS given no DESTINATION!
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?
SHARED libraries on Windows have a RUNTIME (.dll) and ARCHIVE (.lib)
portion.
You can omit one but not both.
On Windows the LIBRARY destination is only used for MODULE libraries.
Nils
--
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://www.cmake.org/mailman/listinfo/cmake