diff options
| author | Djihad Mahboubi <76681596+Djihads80@users.noreply.github.com> | 2026-11-01 13:00:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-01 13:00:12 +0100 |
| commit | 3003c5fa4af06d6b804b18ade5ab1bbea0e81556 (patch) | |
| tree | 5a0fbffdea92bae53f3ef01dfd3f56dfcc9bd447 /src | |
| parent | e96917cd0e68851ec389dd519f03b52adc11d493 (diff) | |
| parent | b610259c74ab3b952fe00e6b5f79e4a1de320ffe (diff) | |
Merge pull request #105 from shiv121231/nx2
Fixing mac build errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a2abc7d1b3..c49e252ccb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -178,6 +178,13 @@ else() $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-parameter> $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-missing-field-initializers>) + if (ENABLE_WERROR AND (NOT MSVC)) + add_compile_options( + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-error=unused> + $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-error=unused-function> + ) + endif() + if (CXX_CLANG OR CXX_ICC OR CXX_APPLE) # Clang, AppleClang, or Intel C++ if (NOT MSVC) add_compile_options( |
