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 -
So that's something new I have learned about CMake.
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>)
Statistics: Posted by hippy — Sat Dec 14, 2024 4:38 pm