From ca93936e781508e9f9c8e58c26a08809b037cc29 Mon Sep 17 00:00:00 2001 From: Nobuaki Sukegawa Date: Sat, 14 Nov 2015 00:23:40 +0900 Subject: THRIFT-3424 Add CMake android build option Client: Build Patch: Nobuaki Sukegawa This closes #696 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f3005f56e..37e89766f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,11 @@ if(BUILD_TESTING) else () message(STATUS "Building without tests") endif () + if(BUILD_COMPILER) + if(NOT EXISTS ${THRIFT_COMPILER}) + set(THRIFT_COMPILER $) + endif() add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/compiler/cpp) endif() @@ -75,7 +79,7 @@ if(BUILD_CPP) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/cpp) if(BUILD_TUTORIALS) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tutorial/cpp) - endif(BUILD_TUTORIALS) + endif() if(BUILD_TESTING) if(WITH_LIBEVENT AND WITH_ZLIB AND WITH_OPENSSL) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test/cpp) -- cgit v1.2.1