Skip to content

Commit 2bfa1b4

Browse files
committed
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.
1 parent 0e611f5 commit 2bfa1b4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,6 @@ if(OS_WINDOWS)
168168
TARGET obs-websocket
169169
APPEND
170170
PROPERTY AUTORCC_OPTIONS --format-version 1)
171+
172+
target_link_options(obs-websocket PRIVATE /IGNORE:4099)
171173
endif()

cmake/legacy.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ endif()
155155

156156
if(MSVC)
157157
target_compile_options(obs-websocket PRIVATE /wd4267 /wd4996)
158+
target_link_options(obs-websocket PRIVATE "LINKER:/IGNORE:4099")
158159
else()
159160
target_compile_options(
160161
obs-websocket

0 commit comments

Comments
 (0)