I'm trying to add a library to my CMake project, but I don't want the compiler to give me warning for this project so that I can enable -werror
.
For this I tried using the SYSTEM
flag in FetchContent
, with no success :
FetchContent_Declare(
raylib
GIT_REPOSITORY https://github.com/raysan5/raylib.git
GIT_TAG 4.2.0
SYSTEM
)
FetchContent_MakeAvailable(raylib)
This is the case for raylib and Google Test. Is there something to be done the the library side ? Or can I do something about it ?
)`
– thomas_f Jan 31 '23 at 11:01