From 587b34e970cf067feed0ef8b6de63e099e718bde Mon Sep 17 00:00:00 2001 From: Deepak Majeti Date: Tue, 28 Jun 2016 11:27:57 -0400 Subject: [PATCH] ORC-71: Apache ORC C++ ONLY build --- CMakeLists.txt | 8 +++++++- README.md | 10 ++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 193ad5d675..99f4fc3cb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,9 +103,15 @@ enable_testing() set (EXAMPLE_DIRECTORY ${CMAKE_SOURCE_DIR}/examples) +option (INCLUDE_JAVA + "Include Java in the build process" + ON) + add_subdirectory(c++) add_subdirectory(tools) -add_subdirectory(java) +if (INCLUDE_JAVA) + add_subdirectory(java) +endif() # Add another target called test-out that prints the results on failure if (CMAKE_CONFIGURATION_TYPES) diff --git a/README.md b/README.md index 2ea9a88560..417f266b66 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,13 @@ To build only the Java library: % mvn package ``` + +To build only the C++ library: +```shell +% mkdir build +% cd build +% cmake .. -DINCLUDE_JAVA=OFF +% make package +% make test-out + +```