INSTALL EXPORT for Debug and Release

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

INSTALL EXPORT for Debug and Release

Justin Berger
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?


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: