[CMake] INSTALL EXPORT for Debug and Release

Justin Berger j.david.berger at gmail.com
Mon Dec 4 16:27:10 EST 2017


With two build directories -- one for release and one for debug -- using
the Makefile generator, it seems like calling one 'make install' replaces
out the export files for the other with the message:

> Old export file "<project>.cmake" will be replaced.  Removing files
[<project>-debug.cmake]

The INSTALL snippet just looks like:

> install(EXPORT <project> DESTINATION lib/<project>)

The question is, is it possible to use a single config generator like
Makefiles to install both a working release and debug version of a library?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171204/6153899a/attachment.html>


More information about the CMake mailing list