[nostalgia] Fix MSVC build

This commit is contained in:
Gary Talent 2020-11-07 17:59:36 -06:00
parent 40f3c4ecb5
commit 5f4e6740cc
3 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,9 @@ add_library(
media.cpp
)
target_compile_options(NostalgiaCore PUBLIC -Wsign-conversion)
if(NOT MSVC)
target_compile_options(NostalgiaCore PUBLIC -Wsign-conversion)
endif()
target_link_libraries(
NostalgiaCore PUBLIC

View File

@ -11,7 +11,9 @@ add_library(
rsrc.qrc
)
target_compile_options(NostalgiaCore-Studio PRIVATE -Wsign-conversion)
if(NOT MSVC)
target_compile_options(NostalgiaCore-Studio PRIVATE -Wsign-conversion)
endif()
target_link_libraries(
NostalgiaCore-Studio

View File

@ -3,7 +3,9 @@ add_library(
media.cpp
)
target_compile_options(NostalgiaCore-Userspace PRIVATE -Wsign-conversion)
if(NOT MSVC)
target_compile_options(NostalgiaCore-Userspace PRIVATE -Wsign-conversion)
endif()
target_link_libraries(
NostalgiaCore-Userspace PUBLIC