Triangular dependencies in libraries. #226
Unanswered
markfoodyburton
asked this question in
Q&A
Replies: 2 comments
-
Hm my personal projects have a lot of triangular dependencies, however they all use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like you were right.... thanks for the pointer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have library A which is "well behaved" and uses export to make a library.
Library B likewise, and uses a find_package(A) to find A.
Then I have a project C, which uses CPMFindPackage to include A and likewise B.
I then get:
CMake Error at ..../_deps/A/AConfig.cmake: (include):
The file
.../ATargets.cmake
was generated by the export() command. It may not be used as the argument
to the include() command. Use ALIAS targets instead to refer to targets by
alternative names.
Call Stack (most recent call first):
.../B/CMakeLists.txt (find_package)
Building B on it's own works... so I assume It's an issue somehow with CPM, but I dont understand how !
Any help appreciated !
Beta Was this translation helpful? Give feedback.
All reactions