Am Dienstag, 10. Dezember 2013, 13:07:07 schrieb Totte Karlsson:
> Hi,
> I'm creating a 'plugin' DLL and want to prevent the associated .lib file
> to be installed (cause its not being used).
>
> My Install code looks like this now:
>
> install (TARGETS ${target}
> DESTINATION plugins
> COMPONENT plugins
> )
>
> and it installs both a .DLL and a .lib file. Any simple fix?If it is a plugin, i.e. it is only opened using dlopen() or the Windows equivalent that I forgot the name, and never linked against, don't use SHARED but MODULE in the add_library() call. Eike
signature.asc
Description: This is a digitally signed message part.
-- 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
