# Cycle Warning in CMake output

**URL:** <https://discourse.cmake.org/t/cycle-warning-in-cmake-output/15258>\
**Category:** Code\
**Created:** [October 21, 2025, 4:24pm UTC](https://discourse.cmake.org/t/cycle-warning-in-cmake-output/15258 "2025-10-21T16:24:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imikejackson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/imikejackson/32/301_2.png) [@imikejackson](https://discourse.cmake.org/u/imikejackson)\
**Post date:** [October 21, 2025, 4:24pm UTC](https://discourse.cmake.org/t/cycle-warning-in-cmake-output/15258/1 "2025-10-21T16:24:37Z")

</div>

I am starting to get lots of the following warnings when configuring our project:

CMake Warning at /opt/local/vcpkg/scripts/buildsystems/vcpkg.cmake:649 (\_add\_library):  
Cannot generate a safe runtime search path for target NXComponents because  
there is a cycle in the constraint graph:

```auto
dir 0 is [/Users/Shared/NX_SDK/Qt/6.9.2/macos/lib]
dir 1 is [/Users/mjackson/Workspace1/DREAM3D-Build/NX-Com-Qt69-Vtk95-Rel/Bin]
  dir 2 must precede it due to runtime library [libEbsdLib.dylib]
dir 2 is [/Users/mjackson/Workspace1/vcpkg-installed/arm64-osx-v11/lib]
  dir 1 must precede it due to runtime library [libEbsdLib.dylib]
dir 3 is [/opt/local/anaconda3/envs/dream3d/lib]

```

Some of these libraries may not be found correctly.  
Call Stack (most recent call first):  
src/NXComponents/CMakeLists.txt:13 (add\_library)

We use vcpkg for all of our dependencies except Qt 6 and VTK 9.5.2

EbsdLib is our own library but is compiled through vcpkg. We keep our own vcpkg registry up on GitHub.

EbsdLib has a dependency on HDF5 and TBB (which are both satisfied through vcpkg).

I am just not really sure what I should do to fix these warnings? They were popping up for a few targets but now I am getting the warning for almost _every_ target in our project.

We are using CMake 3.30.3

Any help or pointers would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![imikejackson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/imikejackson/32/301_2.png) [@imikejackson](https://discourse.cmake.org/u/imikejackson)\
**Post date:** [October 21, 2025, 4:50pm UTC](https://discourse.cmake.org/t/cycle-warning-in-cmake-output/15258/2 "2025-10-21T16:50:25Z")

</div>

NEVER MIND.. I had one of our plugins that did not get updated to look for EbsdLib through vcpkg and was still building it locally.

Sorry for the noise.
