-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildenv/1.3.x: fix LNK4099 warning when linking to protobuf
libprotobuf.lib(message_lite.cc.obj) : warning LNK4099: PDB 'vc140.pdb' was not found with 'libprotobuf.lib(message_lite.cc.obj)' or at 'D:\a\1\s\release\vc140.pdb'; linking object as if no debug info LINK : error LNK1218: warning treated as error; no output file generated
- Loading branch information
1 parent
715a888
commit c02dbcf
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
buildenv/1.3.x/win32-static/patches/protobuf-missing-pdb-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- cmake/CMakeLists_txt | ||
+++ cmake/CMakeLists.txt | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
@@ -133,6 +133,8 @@ | ||
endif (protobuf_BUILD_SHARED_LIBS) | ||
|
||
if (MSVC) | ||
+ # Bake debug info into the binaries | ||
+ add_compile_options(/Z7) | ||
# Build with multiple processes | ||
add_definitions(/MP) | ||
add_definitions(/wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Should be
./cmake/CMakeLists.txt
instead.