(cmake) use FetchContent cmake module to retrieve spdlog third party dependency

This commit is contained in:
Benjamin Sergeant
2020-09-26 13:51:19 -07:00
parent 97cc543e53
commit 2526a94454
159 changed files with 22 additions and 42725 deletions

View File

@ -7,19 +7,19 @@ project (ixwebsocket_unittest)
set (CMAKE_CXX_STANDARD 14)
if (MAC)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../third_party/sanitizers-cmake/cmake" ${CMAKE_MODULE_PATH})
find_package(Sanitizers)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")
set(CMAKE_LD_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")
option(USE_TLS "Add TLS support" ON)
endif()
include(FetchContent)
FetchContent_Declare(spdlog
GIT_REPOSITORY "https://github.com/gabime/spdlog"
GIT_TAG "v1.8.0")
FetchContent_MakeAvailable(spdlog)
option(USE_TLS "Add TLS support" ON)
include_directories(
${PROJECT_SOURCE_DIR}/Catch2/single_include
../third_party
../third_party/msgpack11
../third_party/spdlog/include
../ws
)