diff --git a/cmake/contra-config.cmake b/cmake/contra-config.cmake index f55f8207561e8415accbe4d878df0d70ce0b1568..c038bec5b0400a664c9d191d88b25d793d4e1032 100644 --- a/cmake/contra-config.cmake +++ b/cmake/contra-config.cmake @@ -61,6 +61,15 @@ foreach(COMPONENT ${contra_FIND_COMPONENTS}) endif(NOT contra_FIND_QUIETLY) continue() endif(NOT Boost_FOUND) + elseif (${COMPONENT} STREQUAL "websockets") + find_package(Boost REQUIRED system) + find_package(Threads REQUIRED) + if (NOT Boost_FOUND) + if(NOT contra_FIND_QUIETLY) + message(SEND_ERROR "Did not find dependency for contra component `${COMPONENT}`: boost") + endif(NOT contra_FIND_QUIETLY) + continue() + endif(NOT Boost_FOUND) endif () include(${COMPONENT_CONFIG_FILE})