Skip to content

[fprime 2.0][cmake] target_link_libraries on PROJECT_NAME #1067

Answered by LeStarch
tumbleshack asked this question in Q&A
Discussion options

You must be logged in to vote

To fix your code:

target_link_libraries("${PROJECT_NAME}_exe" .....)

The reason for this is we broke our Ref into two parts:

  • "Ref" a deployment target that depends on dict, packaging, and depends on:
  • "Ref_exe" an executable target and the item that needs to link with arduino.

We need a level at which to set dependence on system level processes (for example dict) while still building/updating when you do a top-level build. Breaking Ref into the above two pieces made the most sense.

We are revisiting this in v3.0.0, but that is still under development.

Replies: 2 comments 5 replies

Comment options

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

Comment options

You must be logged in to vote
4 replies
@LeStarch
Comment options

@LeStarch
Comment options

@tumbleshack
Comment options

@Joshua-Anderson
Comment options

Answer selected by tumbleshack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants