Closed hedayat closed 2 years ago
Thanks for the comment. I'm still unfamiliar with CMake.
Do users need to change the compiler flags for warning messages?
If not, target_compile_options(rcssmonitor -W -Wall)
is enough?
To be honest, I don't know the answer to your first question! There might be someone who prefers to not see the warnings; but it might not be a priority.
But yeah, that'd work in that case but it seems that the scope argument is mandatory: target_compile_options(rcssmonitor PRIVATE -W -Wall)
OK. Thanks. Will be fixed soon.
This line in CMakeLists.txt overwrites any user supplied values which is not desirable. A minimum change would be to append values to this variable; more suitable approach is probably to change default values and let the user decide if he wants to use the default ones or not. An example of the latter approach is available here.
Same problem exists in rcssserver project.