...
This commit is contained in:
@@ -32,13 +32,9 @@ else()
|
||||
find_package(ASIO)
|
||||
endif()
|
||||
|
||||
find_package(spdlog CONFIG)
|
||||
# set(SPDLOG_USE_STD_FORMAT ON)
|
||||
# set(SPDLOG_FMT_EXTERNAL OFF )
|
||||
# set(SPDLOG_MASTER_PROJECT OFF)
|
||||
# set(SPDLOG_BUILD_EXAMPLE OFF)
|
||||
# find_package(spdlog CONFIG)
|
||||
|
||||
# set(spdlog_FOUND FALSE )
|
||||
set(spdlog_FOUND FALSE )
|
||||
if (NOT spdlog_FOUND)
|
||||
message(STATUS "SPDLOG libarary was not found! Try to download it!")
|
||||
|
||||
@@ -70,6 +66,9 @@ if (NOT spdlog_FOUND)
|
||||
find_package(spdlog CONFIG)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(SPDLOG_USE_STD_FORMAT)
|
||||
add_compile_definitions(SPDLOG_FMT_EXTERNAL=0)
|
||||
|
||||
option(WITH_TESTS "Build tests" ON)
|
||||
|
||||
# Mount client-to-server communication protocol
|
||||
@@ -91,4 +90,6 @@ if (WITH_TESTS)
|
||||
set(CNTR_PROTO_TEST_APP cntr_proto_test)
|
||||
add_executable(${CNTR_PROTO_TEST_APP} tests/cntr_proto_test.cpp)
|
||||
target_link_libraries(${CNTR_PROTO_TEST_APP} ${CNTR_PROTO_LIB} spdlog::spdlog_header_only)
|
||||
# target_link_libraries(${CNTR_PROTO_TEST_APP} ${CNTR_PROTO_LIB})
|
||||
# target_include_directories(${CNTR_PROTO_TEST_APP} PUBLIC ${SPDLOG_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user