diff --git a/CMakeLists.txt b/CMakeLists.txt index f3cb26f38..46182f634 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,6 +202,11 @@ include_directories(${JSON_INCLUDE}) find_package(UTF8CPP) include_directories(${UTF8CPP_INCLUDE}) +if(WIN32) + find_package(BoostWinTLS) + include_directories(${BoostWinTLS_INCLUDE}) +endif() + find_package(Editline) set(HAVE_EDITLINE "${EDITLINE_FOUND}") diff --git a/cmake/FindBoostWinTLS.cmake b/cmake/FindBoostWinTLS.cmake new file mode 100644 index 000000000..f2e27da9e --- /dev/null +++ b/cmake/FindBoostWinTLS.cmake @@ -0,0 +1,8 @@ +FIND_PATH(BoostWinTLS_HEADERS wintls.hpp HINTS "${PROJECT_SOURCE_DIR}/third-party/boost-wintls/include/boost") + +if(BoostWinTLS_HEADERS) + set(BoostWinTLS_INCLUDE "${BoostWinTLS_HEADERS}/..") + message(STATUS "Found Boost.WinTLS: ${BoostWinTLS_INCLUDE}") +else() + message(FATAL_ERROR "Unable to include wintls.hpp") +endif()