THRIFT-5109 Misc Cmake build improvements
Patch: Mario Emmenlauer
This closes #2094
diff --git a/build/cmake/DefineOptions.cmake b/build/cmake/DefineOptions.cmake
index 8357160..8c7a4a9 100644
--- a/build/cmake/DefineOptions.cmake
+++ b/build/cmake/DefineOptions.cmake
@@ -108,7 +108,7 @@
# Javascript
option(WITH_JAVASCRIPT "Build Javascript Thrift library" ON)
CMAKE_DEPENDENT_OPTION(BUILD_JAVASCRIPT "Build Javascript library" ON
- "BUILD_LIBRARIES;WITH_JAVASCRIPT" OFF)
+ "BUILD_LIBRARIES;WITH_JAVASCRIPT;NOT WIN32; NOT CYGWIN" OFF)
# NodeJS
option(WITH_NODEJS "Build NodeJS Thrift library" ON)