mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-07-01 13:36:22 +02:00
oki
This commit is contained in:
parent
f8c1494b6a
commit
a5b7451f1d
3 changed files with 15 additions and 8 deletions
|
|
@ -77,7 +77,7 @@ set(YUZU_QT_MIRROR "" CACHE STRING "What mirror to use for downloading the bundl
|
||||||
cmake_dependent_option(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" "${MSVC}" "ENABLE_QT" OFF)
|
cmake_dependent_option(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" "${MSVC}" "ENABLE_QT" OFF)
|
||||||
|
|
||||||
option(ENABLE_DEBUG_TOOLS "Enable debugging tools (maxwell disassembler, SPIRV translator, etc)" OFF)
|
option(ENABLE_DEBUG_TOOLS "Enable debugging tools (maxwell disassembler, SPIRV translator, etc)" OFF)
|
||||||
option(ENABLE_WERROR "Enable -Werror diagnostics" OFF)
|
option(ENABLE_WERROR "Enable -Werror diagnostics" ON)
|
||||||
|
|
||||||
# non-linux bundled qt are static
|
# non-linux bundled qt are static
|
||||||
if (YUZU_USE_BUNDLED_QT AND (APPLE OR NOT UNIX))
|
if (YUZU_USE_BUNDLED_QT AND (APPLE OR NOT UNIX))
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ These options control dependencies.
|
||||||
- Needed for gyroscopes
|
- Needed for gyroscopes
|
||||||
- Only available on Linux
|
- Only available on Linux
|
||||||
- `ENABLE_DEBUG_TOOLS` (OFF) Enables debugging and development tools, see [tools](../tools/README.md).
|
- `ENABLE_DEBUG_TOOLS` (OFF) Enables debugging and development tools, see [tools](../tools/README.md).
|
||||||
- `ENABLE_WERROR` (OFF) Enables warnings as errors (-Werror).
|
- `ENABLE_WERROR` (ON) Enables warnings as errors (-Werror).
|
||||||
|
|
||||||
### Flavors
|
### Flavors
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -156,14 +156,21 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ENABLE_WERROR)
|
if (ENABLE_WERROR)
|
||||||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:-Werror>)
|
add_compile_options(
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=all>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=extra>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=missing-declarations>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=shadow>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=unused>)
|
||||||
|
else()
|
||||||
|
add_compile_options(
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wall>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wextra>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wmissing-declarations>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wshadow>
|
||||||
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wunused>)
|
||||||
endif()
|
endif()
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wall>
|
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wextra>
|
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wmissing-declarations>
|
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wshadow>
|
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wunused>
|
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-attributes>
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-attributes>
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-invalid-offsetof>
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-invalid-offsetof>
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-parameter>
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-parameter>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue