doc: cmake command on Windows
authoryuangongji (A) <82787816@qq.com>
Mon, 3 Jun 2019 15:22:35 +0000 (23:22 +0800)
committerAzat Khuzhin <azat@libevent.org>
Mon, 3 Jun 2019 20:43:45 +0000 (23:43 +0300)
Closes: #825 (cherry-pick)
Documentation/Building.md
README.md

index fe957641db4007a6e07d2fc7cafef1cb2035fa19..22dd4e2f9cb09e54755fc1b644c749c0cecb36ed 100644 (file)
@@ -53,8 +53,8 @@ The configure script also supports the following flags:
 __Download CMake for Windows [here](https://cmake.org/download/)__
 ```
 > md build && cd build
-> cmake -G "Visual Studio 10" .. # Or use any generator you want to use. Run cmake --help for a list
-> start libevent.sln
+> cmake -G "Visual Studio 10" ..   # Or use any generator you want to use. Run cmake --help for a list
+> cmake --build . --config Release # Or "start libevent.sln" and build with menu in Visual Studio.
 ```
 In the above, the ".." refers to the dir containing the Libevent source code. You can build multiple versions (with different compile time settings) from the same source tree by creating other build directories.
 
index e51f6496ad18f9a3c5b8028562fc8e0ae1892af6..538b91350463e1b89f2f1b32377754a293a2cf5e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -30,8 +30,8 @@ Install CMake: <https://www.cmake.org>
 
 ```
 $ md build && cd build
-$ cmake -G "Visual Studio 10" ..   # Or whatever generator you want to use cmake --help for a list.
-$ start libevent.sln
+$ cmake -G "Visual Studio 10" ..   # Or use any generator you want to use. Run cmake --help for a list
+$ cmake --build . --config Release # Or "start libevent.sln" and build with menu in Visual Studio.
 ```
 
 See [Documentation/Building#Building on Windows](/Documentation/Building.md#building-on-windows) for more information