From: yuangongji (A) <82787816@qq.com> Date: Mon, 3 Jun 2019 15:22:35 +0000 (+0800) Subject: doc: cmake command on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b002f04f03ee924f7cdbe44483a74d66be2982cd;p=libevent doc: cmake command on Windows Closes: #825 (cherry-pick) --- diff --git a/Documentation/Building.md b/Documentation/Building.md index fe957641..22dd4e2f 100644 --- a/Documentation/Building.md +++ b/Documentation/Building.md @@ -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. diff --git a/README.md b/README.md index e51f6496..538b9135 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ Install CMake: ``` $ 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