Skip to content

Commit

Permalink
apacheGH-43998: [C++][Docs] Add missing install command in building d…
Browse files Browse the repository at this point in the history
…ocs (apache#44000)

### Rationale for this change

We need to install to use built Arrow C++ in our application.

### What changes are included in this PR?

Add an install command line for each build command lines.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#43998

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou committed Sep 13, 2024
1 parent 8e891a3 commit 0bdb5be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/developers/cpp/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ and then ask to compile the build targets:
0 directories, 3 files
$ cmake --install .
When creating a build, it is possible to pass custom options besides
the preset-defined ones, for example:

Expand Down Expand Up @@ -293,6 +295,7 @@ Minimal release build (1GB of RAM for building or more recommended):
$ cd build-release
$ cmake ..
$ make -j8 # if you have 8 CPU cores, otherwise adjust
$ make install
Minimal debug build with unit tests (4GB of RAM for building or more recommended):

Expand All @@ -305,6 +308,7 @@ Minimal debug build with unit tests (4GB of RAM for building or more recommended
$ cmake -DCMAKE_BUILD_TYPE=Debug -DARROW_BUILD_TESTS=ON ..
$ make -j8 # if you have 8 CPU cores, otherwise adjust
$ make unittest # to run the tests
$ make install
The unit tests are not built by default. After building, one can also invoke
the unit tests using the ``ctest`` tool provided by CMake (note that ``test``
Expand Down

0 comments on commit 0bdb5be

Please sign in to comment.