mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
cmake: Ignore LNK4099 warning
Despite building the PDBs for qrcodegencpp debug builds, we do not currently ship those PDBs, so MSVC emits an LNK4099 warning, which causes a build failure. It's unlikely that we'll need to debug in linked dependencies, so we can ignore this warning. Should we decide in the future to ship PDBs for these dependencies, the warning would no longer be emitted, and this flag would be superfluous without requiring a change. For now, let's make sure we can build in Debug.
This commit is contained in:
parent
0e611f579b
commit
2bfa1b4c64
@ -168,4 +168,6 @@ if(OS_WINDOWS)
|
||||
TARGET obs-websocket
|
||||
APPEND
|
||||
PROPERTY AUTORCC_OPTIONS --format-version 1)
|
||||
|
||||
target_link_options(obs-websocket PRIVATE /IGNORE:4099)
|
||||
endif()
|
||||
|
@ -155,6 +155,7 @@ endif()
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(obs-websocket PRIVATE /wd4267 /wd4996)
|
||||
target_link_options(obs-websocket PRIVATE "LINKER:/IGNORE:4099")
|
||||
else()
|
||||
target_compile_options(
|
||||
obs-websocket
|
||||
|
Loading…
Reference in New Issue
Block a user