You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A extra and unwanted '"' is prepended when using the output of zephyr_get_compile_options_for_lang() to set an other target compile option. This lead to a compilation failure (gcc does not really like this extra double quote)
The zephyr_get_compile_options_for_lang(C ext_options) was originally intended to be used integration to external build system/libraries, such as here:
but it does have a side-effect, and that is that it is process order dependent (you may not get flags added after this code was called).
I have done some cleanup and improvements, but need to keep the code working for main use case.
A safer approach in your case is to do:
target_compile_options(lzg PRIVATE $<TARGET_PROPERTY:zephyr_interface,INTERFACE_COMPILE_OPTIONS>)
target_include_directories(lzg SYSTEM PRIVATE $<TARGET_PROPERTY:zephyr_interface,INTERFACE_SYSTEM_INCLUDE_DIRECTORIES>)
Describe the bug
A extra and unwanted '"' is prepended when using the output of zephyr_get_compile_options_for_lang() to set an other target compile option. This lead to a compilation failure (gcc does not really like this extra double quote)
example:
instead of
To Reproduce
Only
zephyr_get_compile_options_for_lang
seems to add this extra double quote,zephyr_get_system_include_directories_for_lang
does notExpected behavior
The extra double quote should not be added
Impact
This is kind of a show stopper since I can't compile my application anymore
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: