Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
e93dea77
Commit
e93dea77
authored
Oct 17, 2019
by
Daniel Johansen
Committed by
Adam Cozzette
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Cmake example to build Visual Studio to newest 2019 version.
parent
2f7f6701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README.md
cmake/README.md
+5
-5
No files found.
cmake/README.md
View file @
e93dea77
...
...
@@ -13,13 +13,13 @@ Environment Setup
Open the appropriate
*Command Prompt*
from the
*Start*
menu.
For example
*
VS2013 x64 Native Tools Command Prompt
*
:
For example
*
x86 Native Tools Command Prompt for VS 2019
*
:
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\bin\amd64
>
C:\Program Files (x86)\Microsoft Visual Studio
\2019\Professional
>
Change to your working directory:
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\bin\amd64
>cd C:\Path\to
C:\Program Files (x86)\Microsoft Visual Studio
\2019\Professional
>cd C:\Path\to
C:\Path\to>
Where
*C:\Path\to*
is path to your real working directory.
...
...
@@ -121,7 +121,7 @@ It will generate *nmake* *Makefile* in current directory.
To create
*Visual Studio*
solution file:
C:\Path\to\protobuf\cmake\build>mkdir solution & cd solution
C:\Path\to\protobuf\cmake\build\solution>cmake -G "Visual Studio 1
4 2015 Win64
" ^
C:\Path\to\protobuf\cmake\build\solution>cmake -G "Visual Studio 1
6 2019
" ^
-DCMAKE_INSTALL_PREFIX=../../../../install ^
../..
...
...
@@ -130,7 +130,7 @@ It will generate *Visual Studio* solution file *protobuf.sln* in current directo
If the
*gmock*
directory does not exist, and you do not want to build protobuf unit tests,
you need to add
*cmake*
command argument
`-Dprotobuf_BUILD_TESTS=OFF`
to disable testing.
To make a
*Visual Studio*
file for Visual Studio 1
5 2017
, create the
*Visual Studio*
To make a
*Visual Studio*
file for Visual Studio 1
6 2019
, create the
*Visual Studio*
solution file above and edit the CMakeCache file.
C:Path\to\protobuf\cmake\build\solution\CMakeCache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment