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

General • Re: Build issue with implict functions

$
0
0
Many thank; just what I was after.

Using 'target_compile_option' is fine because I already use that. I was able to get by with just making the '-Wno-implicit-function-declaration' C specific -

Code:

target_compile_options(${PROJECT_NAME} PRIVATE    -Wall -Werror    -Wno-unused-function    -Wno-unused-variable    $<$<COMPILE_LANGUAGE:C>:-Wno-implicit-function-declaration>)
So that's something new I have learned about CMake.

Statistics: Posted by hippy — Sat Dec 14, 2024 4:38 pm



Viewing all articles
Browse latest Browse all 5031

Trending Articles