Skip to content

CMake AOT Problem #5336

Answered by alexreinking
calein asked this question in Q&A
Oct 6, 2020 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

The short answer is that you aren't linking to libblur.runtime.a.

The long answer is that if you want to split up compilation like this, then you should export / install the library target from the gen project and then find_package from the run project to get those targets. Then you would use target_link_libraries to link to the imported target rather than a system-specific path embedded in the CMake file (you should really never do this).

I've been meaning to put together an example of this for multi-toolchain cross-compilation for a while, but I have paper deadlines coming up, so I won't be able to get to it for a couple months.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@alexreinking
Comment options

Answer selected by calein
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants