Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5383

General • Re: Build issue with implict functions

$
0
0
This seems to work:

Code:

target_compile_options(my_executable PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wall -Werror -Wno-implicit-function-declaration>)
I couldn't find a variant that would work with add_compile_options(), (though there may well be one) and target_compile_options isn't a direct 1:1 replacement for add_compile_options().

Statistics: Posted by arg001 — Sat Dec 14, 2024 2:47 pm



Viewing all articles
Browse latest Browse all 5383

Trending Articles