diff options
author | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2019-10-23 17:32:34 +0200 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2020-02-23 14:51:48 +0100 |
commit | 61d502075bf5da10331c201f604acdfefc4d5edc (patch) | |
tree | edac8ef77dcd0eceb0dedbf035ecaf428ea8e86e /build | |
parent | f5a9a30e345fc8cf52d37388cb7b9ab741a3a4ac (diff) | |
download | thrift-61d502075bf5da10331c201f604acdfefc4d5edc.tar.gz |
THRIFT-5109 Misc Cmake build improvements
Patch: Mario Emmenlauer
This closes #2026
This closes #2025
This closes #2021
Diffstat (limited to 'build')
-rw-r--r-- | build/cmake/DefineOptions.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/cmake/DefineOptions.cmake b/build/cmake/DefineOptions.cmake index 6a69c6d09..f85d2c644 100644 --- a/build/cmake/DefineOptions.cmake +++ b/build/cmake/DefineOptions.cmake @@ -101,6 +101,16 @@ else() "BUILD_LIBRARIES;WITH_JAVA;JAVA_FOUND;GRADLEW_FOUND" OFF) endif() +# Javascript +option(WITH_JAVASCRIPT "Build Javascript Thrift library" ON) +CMAKE_DEPENDENT_OPTION(BUILD_JAVASCRIPT "Build Javascript library" ON + "BUILD_LIBRARIES;WITH_JAVASCRIPT" OFF) + +# NodeJS +option(WITH_NODEJS "Build NodeJS Thrift library" ON) +CMAKE_DEPENDENT_OPTION(BUILD_NODEJS "Build NodeJS library" ON + "BUILD_LIBRARIES;WITH_NODEJS" OFF) + # Python option(WITH_PYTHON "Build Python Thrift library" ON) find_package(PythonInterp QUIET) # for Python executable @@ -182,6 +192,10 @@ else() MESSAGE_DEP(JAVA_FOUND "Java Runtime missing") MESSAGE_DEP(GRADLEW_FOUND "Gradle Wrapper missing") endif() +message(STATUS " Build Javascript library: ${BUILD_JAVASCRIPT}") +MESSAGE_DEP(WITH_JAVASCRIPT "Disabled by WITH_JAVASCRIPT=OFF") +message(STATUS " Build NodeJS library: ${BUILD_NODEJS}") +MESSAGE_DEP(WITH_NODEJS "Disabled by WITH_NODEJS=OFF") message(STATUS) message(STATUS " Build Python library: ${BUILD_PYTHON}") MESSAGE_DEP(WITH_PYTHON "Disabled by WITH_PYTHON=OFF") |