THRIFT-2850 CMake for Apache Thrift
fixes for std/boost::thread detection; security test; qt test
This closes #598
diff --git a/build/cmake/DefineOptions.cmake b/build/cmake/DefineOptions.cmake
index d336c50..62e240f 100644
--- a/build/cmake/DefineOptions.cmake
+++ b/build/cmake/DefineOptions.cmake
@@ -62,8 +62,10 @@
find_package(OpenSSL QUIET)
CMAKE_DEPENDENT_OPTION(WITH_OPENSSL "Build with OpenSSL support" ON
"OPENSSL_FOUND" OFF)
-option(WITH_BOOSTTHREADS "Build with Boost thread support" OFF)
option(WITH_STDTHREADS "Build with C++ std::thread support" OFF)
+CMAKE_DEPENDENT_OPTION(WITH_BOOSTTHREADS "Build with Boost threads support" OFF
+ "NOT WITH_STDTHREADS;Boost_FOUND" OFF)
+
# C GLib
option(WITH_C_GLIB "Build C (GLib) Thrift library" ON)