Compiling in external libraries #899
Unanswered
space-individual
asked this question in
Q&A
Replies: 1 comment
-
|
I don't know if you still need help with this but do you still get the same CMake error if you change the first line to: add_library(libfreertos STATIC IMPORTED GLOBAL)Per the CMake docs:
This might help resolve that error. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently trying to run the core flight executive on a FreeRTOS environment. I am currently using a community port based on an older version and am running into some difficulties during the linking stage. My main issue I believe is due to the fact that I am trying to link an externally compiled library that contains FreeRTOS and all of the device drivers generated by my IDE.
However, when I insert the following lines into the CMakeLists.txt file in the osal folder:
add_library(libfreertros STATIC IMPORTED)
set_target_properties(libfreertos PROPERTIES IMPORTED_LOCATION "/home/user1/projects/cfs/bsp/libfreertos.a")
I get an error:
set_target_properties Can not find target to add properties to: libfreertos
Please let me know if this is the appropriate place to post this:
Beta Was this translation helpful? Give feedback.
All reactions