From 6bc9b9dc4fda934f00a7c8a03a2b94e04077d1d2 Mon Sep 17 00:00:00 2001 From: neko <52202080+akiyamaneko@users.noreply.github.com> Date: Wed, 16 Sep 2020 17:59:43 +0800 Subject: [PATCH] Fix doc for CMake requirement. (#6123) --- doc/build.rst | 2 +- doc/jvm/index.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build.rst b/doc/build.rst index 637358d26..220abc8f1 100644 --- a/doc/build.rst +++ b/doc/build.rst @@ -66,7 +66,7 @@ on the binding you choose). For building language specific package, see corresp sections in this document. The minimal building requirement is - A recent C++ compiler supporting C++11 (g++-5.0 or higher) -- CMake 3.12 or higher. +- CMake 3.13 or higher. For a list of CMake options, see ``#-- Options`` in CMakeLists.txt on top level of source tree. diff --git a/doc/jvm/index.rst b/doc/jvm/index.rst index 6b3bf9348..a87dcad08 100644 --- a/doc/jvm/index.rst +++ b/doc/jvm/index.rst @@ -154,7 +154,7 @@ To enable the GPU algorithm (``tree_method='gpu_hist'``), use artifacts ``xgboos Installation from source ======================== -Building XGBoost4J using Maven requires Maven 3 or newer, Java 7+ and CMake 3.3+ for compiling the JNI bindings. +Building XGBoost4J using Maven requires Maven 3 or newer, Java 7+ and CMake 3.13+ for compiling the JNI bindings. Before you install XGBoost4J, you need to define environment variable ``JAVA_HOME`` as your JDK directory to ensure that your compiler can find ``jni.h`` correctly, since XGBoost4J relies on JNI to implement the interaction between the JVM and native libraries.