# How to delete or rename an imported target using cmake?

**URL:** https://discourse.cmake.org/t/how-to-delete-or-rename-an-imported-target-using-cmake/2372
**Category:** Usage
**Created:** [December 15, 2020, 9:28am UTC](https://discourse.cmake.org/t/how-to-delete-or-rename-an-imported-target-using-cmake/2372 "2020-12-15T09:28:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [December 15, 2020, 4:22pm UTC](https://discourse.cmake.org/t/how-to-delete-or-rename-an-imported-target-using-cmake/2372/2 "2020-12-15T16:22:20Z")

</div>

You cannot rename imported targets. The ccd library will need changes to support being imported in release and debug modes at the same time (at least from a non-multi-config generator). If you can, using the `Ninja Multi-Config` generator to build the Release and Debug builds at one time should help.

---

_[View the full topic](https://discourse.cmake.org/t/how-to-delete-or-rename-an-imported-target-using-cmake/2372)._
