From f8d23b97bebbfc5f3103596c11c2b32f93feb793 Mon Sep 17 00:00:00 2001 From: RAMitchell Date: Mon, 4 Jul 2016 16:30:50 +1200 Subject: [PATCH] Add build instructions for Visual Studio 2013 (#1327) --- doc/build.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/build.md b/doc/build.md index f892d32d8..c579b64ce 100644 --- a/doc/build.md +++ b/doc/build.md @@ -104,8 +104,17 @@ To build with MinGW cp make/mingw64.mk config.mk; make -j4 ``` -The MSVC build for new version is not yet updated. +To build with Visual Studio 2013 use cmake. Make sure you have a recent version of cmake added to your path and then from the xgboost directory: +```bash +mkdir build +cd build +cmake .. -G"Visual Studio 12 2013 Win64" +``` + +This specifies an out of source build using the MSVC 12 64 bit generator. Open the .sln file in the build directory and build with Visual Studio. To use the Python module you can copy libxgboost.dll into python-package\xgboost. + +Other versions of Visual Studio may work but are untested. ### Customized Building