Browse Source
fix msvc
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2994/head
crueter
4 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
3 changed files with
17 additions and
6 deletions
-
src/tests/CMakeLists.txt
-
src/yuzu/CMakeLists.txt
-
src/yuzu_cmd/CMakeLists.txt
|
|
|
@ -27,3 +27,12 @@ target_link_libraries(tests PRIVATE common core input_common video_core) |
|
|
|
target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2WithMain Threads::Threads) |
|
|
|
|
|
|
|
add_test(NAME tests COMMAND tests) |
|
|
|
|
|
|
|
# needed for vma |
|
|
|
if (NOT MSVC) |
|
|
|
target_compile_options(tests PRIVATE |
|
|
|
-Wno-conversion |
|
|
|
-Wno-unused-variable |
|
|
|
-Wno-unused-parameter |
|
|
|
-Wno-missing-field-initializers) |
|
|
|
endif() |
|
|
|
@ -447,7 +447,7 @@ if (YUZU_ROOM) |
|
|
|
target_link_libraries(yuzu PRIVATE Qt6::Widgets) |
|
|
|
endif() |
|
|
|
|
|
|
|
if (NOT YUZU_STATIC_BUILD) |
|
|
|
if (NOT MSVC AND NOT YUZU_STATIC_BUILD) |
|
|
|
# needed for vma |
|
|
|
target_compile_options(yuzu PRIVATE |
|
|
|
-Wno-conversion |
|
|
|
|
|
|
|
@ -65,8 +65,10 @@ if (YUZU_STATIC_BUILD) |
|
|
|
endif() |
|
|
|
|
|
|
|
# needed for vma |
|
|
|
target_compile_options(yuzu-cmd PRIVATE |
|
|
|
-Wno-conversion |
|
|
|
-Wno-unused-variable |
|
|
|
-Wno-unused-parameter |
|
|
|
-Wno-missing-field-initializers) |
|
|
|
if (NOT MSVC) |
|
|
|
target_compile_options(yuzu-cmd PRIVATE |
|
|
|
-Wno-conversion |
|
|
|
-Wno-unused-variable |
|
|
|
-Wno-unused-parameter |
|
|
|
-Wno-missing-field-initializers) |
|
|
|
endif() |