summaryrefslogtreecommitdiff
path: root/build/cmake
diff options
context:
space:
mode:
authorcyy <cyyever@outlook.com>2019-01-05 14:49:24 +0800
committerJames E. King III <jking@apache.org>2019-01-07 08:11:37 -0500
commit9f837bbfb4c61ad8afe80950b6ce677a5cd39aeb (patch)
tree3fdf38d4a89ff6814a278f0f7511dc4f0a40e382 /build/cmake
parentf23e6a5e23c8ad1feaaa6913314c7836246a2925 (diff)
downloadthrift-9f837bbfb4c61ad8afe80950b6ce677a5cd39aeb.tar.gz
remove boost smart ptr
Diffstat (limited to 'build/cmake')
-rw-r--r--build/cmake/DefineOptions.cmake6
-rw-r--r--build/cmake/DefinePlatformSpecifc.cmake2
2 files changed, 0 insertions, 8 deletions
diff --git a/build/cmake/DefineOptions.cmake b/build/cmake/DefineOptions.cmake
index 43b73e498..7465c8037 100644
--- a/build/cmake/DefineOptions.cmake
+++ b/build/cmake/DefineOptions.cmake
@@ -45,11 +45,6 @@ if (WITH_BOOST_FUNCTIONAL)
add_definitions(-DFORCE_BOOST_FUNCTIONAL)
endif()
-option(WITH_BOOST_SMART_PTR "Use boost/smart_ptr.hpp even under C++11 or later" OFF)
-if (WITH_BOOST_SMART_PTR)
- add_definitions(-DFORCE_BOOST_SMART_PTR)
-endif()
-
option(WITH_BOOST_STATIC "Build with Boost static link library" OFF)
set(Boost_USE_STATIC_LIBS ${WITH_BOOST_STATIC})
if (NOT WITH_BOOST_STATIC)
@@ -205,7 +200,6 @@ message(STATUS " Build shared libraries: ${WITH_SHARED_LIB}
message(STATUS " Build static libraries: ${WITH_STATIC_LIB}")
message(STATUS " Build with Boost static link library: ${WITH_BOOST_STATIC}")
message(STATUS " Build with boost/tr1/functional (forced) ${WITH_BOOST_FUNCTIONAL}")
-message(STATUS " Build with boost/smart_ptr (forced) ${WITH_BOOST_SMART_PTR}")
message(STATUS " Build with C++ std::thread support: ${WITH_STDTHREADS}")
message(STATUS " Build with libevent support: ${WITH_LIBEVENT}")
message(STATUS " Build with OpenSSL support: ${WITH_OPENSSL}")
diff --git a/build/cmake/DefinePlatformSpecifc.cmake b/build/cmake/DefinePlatformSpecifc.cmake
index cbd5ca867..98fb58958 100644
--- a/build/cmake/DefinePlatformSpecifc.cmake
+++ b/build/cmake/DefinePlatformSpecifc.cmake
@@ -125,7 +125,5 @@ if (WITH_PLUGIN)
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8")
message(SEND_ERROR "Thrift compiler plug-in support is not possible with older gcc ( < 4.8 ) compiler")
endif()
- message(STATUS "Forcing use of boost::smart_ptr to build WITH_PLUGIN")
- add_definitions("-DFORCE_BOOST_SMART_PTR=1")
endif()