diff options
| author | 2019-05-04 02:06:55 -0400 | |
|---|---|---|
| committer | 2019-05-04 02:06:56 -0400 | |
| commit | 5d0dca73c61b5f90f8666dc7f841f4530288c262 (patch) | |
| tree | dbf91133b6e6eabb22341484510f51b22d035e2b /src | |
| parent | Merge pull request #2408 from FearlessTobi/port-4215 (diff) | |
| download | yuzu-5d0dca73c61b5f90f8666dc7f841f4530288c262.tar.gz yuzu-5d0dca73c61b5f90f8666dc7f841f4530288c262.tar.xz yuzu-5d0dca73c61b5f90f8666dc7f841f4530288c262.zip | |
CMakeLists: Explicitly specify -Wall for the non-MSVC case
Ensures that -Wall is always active as a compilation flag.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9aea4af87..1918aa731 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -37,7 +37,10 @@ if (MSVC) | |||
| 37 | set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG /MANIFEST:NO" CACHE STRING "" FORCE) | 37 | set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG /MANIFEST:NO" CACHE STRING "" FORCE) |
| 38 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) | 38 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) |
| 39 | else() | 39 | else() |
| 40 | add_compile_options("-Wno-attributes") | 40 | add_compile_options( |
| 41 | -Wall | ||
| 42 | -Wno-attributes | ||
| 43 | ) | ||
| 41 | 44 | ||
| 42 | if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) | 45 | if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) |
| 43 | add_compile_options("-stdlib=libc++") | 46 | add_compile_options("-stdlib=libc++") |