summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Schwartzmeyer <andrew@schwartzmeyer.com>2017-07-26 11:35:04 -0700
committerAndrew Schwartzmeyer <andrew@schwartzmeyer.com>2017-07-26 11:35:04 -0700
commita2a66f611c1c5ac02d96df88352b2ce11183cdcd (patch)
treead46d3f16f59de5b85c8e395dd4f6eb4bad9acd2
parent9f121e549332f742d85670c66c930de1831404e7 (diff)
downloadglog-a2a66f611c1c5ac02d96df88352b2ce11183cdcd.tar.gz
glog-a2a66f611c1c5ac02d96df88352b2ce11183cdcd.tar.bz2
glog-a2a66f611c1c5ac02d96df88352b2ce11183cdcd.zip
Update Windows readme for CMake
-rw-r--r--README.windows37
1 files changed, 14 insertions, 23 deletions
diff --git a/README.windows b/README.windows
index dbeef32..ea6ccc2 100644
--- a/README.windows
+++ b/README.windows
@@ -1,26 +1,17 @@
-This project has begun being ported to Windows. A working solution
-file exists in this directory:
- google-glog.sln
+This project has been ported to Windows, including stack tracing, signal
+handling, and unit tests.
-You can load this solution file into VC++ 9.0 (Visual Studio
-2008). You may also be able to use this solution file with older
-Visual Studios by converting the solution file.
+A Visual Studio solution file is explicitly not provided because it is not
+maintainable. Instead, a CMake build system exists to generate the correct
+solution for your version of Visual Studio.
-Note that stack tracing and some unittests are not ported
-yet.
+In short,
+ (1) Install CMake from: https://cmake.org/download/
+ (2) With CMake on your PATH, run `cmake .` to generate the build files
+ (3) Either use `cmake --build`, or open the generated solution
-You can also link glog code in statically -- see the example project
-libglog_static and logging_unittest_static, which does this. For this
-to work, you'll need to add "/D GOOGLE_GLOG_DLL_DECL=" to the compile
-line of every glog's .cc file.
-
-I have little experience with Windows programming, so there may be
-better ways to set this up than I've done! If you run across any
-problems, please post to the google-glog Google Group, or report
-them on the google-glog Google Code site:
- http://groups.google.com/group/google-glog
- https://github.com/google/glog/issues
-
--- Shinichiro Hamaji
-
-Last modified: 23 January 2009
+CMake provides different generators, and by default will pick the most relevant
+one to your environment. If you need a specific version of Visual Studio, use
+`cmake . -G <generator-name>`, and see `cmake --help` for the available
+generators. Also see `-T <toolset-name>`, which can used to request the native
+x64 toolchain with `-T host=x64`. \ No newline at end of file