# CMake Error at cmake\_install.cmake:(file) Multiple conflicting paths found for ...

**URL:** https://discourse.cmake.org/t/cmake-error-at-cmake-install-cmake-file-multiple-conflicting-paths-found-for/8950
**Category:** Code
**Tags:** os:linux
**Created:** [September 13, 2023, 10:15am UTC](https://discourse.cmake.org/t/cmake-error-at-cmake-install-cmake-file-multiple-conflicting-paths-found-for/8950 "2023-09-13T10:15:00Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [September 13, 2023, 11:27am UTC](https://discourse.cmake.org/t/cmake-error-at-cmake-install-cmake-file-multiple-conflicting-paths-found-for/8950/2 "2023-09-13T11:27:11Z")

</div>

## Got it, this helps:

```diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55a3a3e..fd89f55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,17 +44,13 @@ if(CMAKE_SKIP_INSTALL_RULES)
 endif()

 install(TARGETS ${PROJECT_NAME} RUNTIME COMPONENT ${PROJECT_NAME})
-install(IMPORTED_RUNTIME_ARTIFACTS ${PROJECT_NAME} RUNTIME_DEPENDENCY_SET runtime_dependency_set
- RUNTIME
+install(IMPORTED_RUNTIME_ARTIFACTS ${PROJECT_NAME} RUNTIME_DEPENDENCY_SET
+ _dependency_set
+)
+# FIXME: CONFLICTING_DEPENDENCIES_PREFIX _conflicts
+install(RUNTIME_DEPENDENCY_SET _dependency_set
+ POST_EXCLUDE_REGEXES "${CMAKE_INSTALL_PREFIX}/lib"
+ RUNTIME DESTINATION lib
 )
-install(RUNTIME_DEPENDENCY_SET runtime_dependency_set RUNTIME DESTINATION lib)

 include(CPack)

```

---

_[View the full topic](https://discourse.cmake.org/t/cmake-error-at-cmake-install-cmake-file-multiple-conflicting-paths-found-for/8950)._
