diff options
author | mj-xmr <mjxmr@protonmail.com> | 2021-08-11 16:24:17 +0200 |
---|---|---|
committer | mj-xmr <mjxmr@protonmail.com> | 2021-08-11 19:53:20 +0200 |
commit | 0a021c3bd139d6c081d49ccbd7217c503cc6ff7b (patch) | |
tree | 2b36f2cece45f2755904f2502e3220e3cb1968be | |
parent | Merge pull request #7796 (diff) | |
download | monero-0a021c3bd139d6c081d49ccbd7217c503cc6ff7b.tar.xz |
CMake: document -Werror for add_c_flag_if_supported() from #7718
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e3e31767d..8240a6588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,6 +106,8 @@ function (die msg) endfunction () function (add_c_flag_if_supported flag var) + # Prepending the flag with -Werror will only add the flag, + # if it doesn't result in generation of a warning of using a flag unknown to the compiler. set(TMP "-Werror ${flag}") string(REGEX REPLACE "[- ]" "_" supported ${TMP}_c) check_c_compiler_flag(${TMP} ${supported}) |