Skip to content

Commit

Permalink
⬆️ spdlog v1.12.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierLDff authored Apr 29, 2024
1 parent 00a1350 commit 15e9728
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set(QOLM_REPOSITORY "https://github.com/OlivierLDff/QOlm.git" CACHE STRING "QOlm
set(QOLM_TAG "v3.1.1" CACHE STRING "QOlm git tag")

set(SPDLOG_REPOSITORY "https://github.com/gabime/spdlog" CACHE STRING "Repository of spdlog")
set(SPDLOG_TAG "fa659bf7ad327a13e2e7134d1004d0cda0c3ed96" CACHE STRING "Git tag/branch of spdlog")
set(SPDLOG_TAG "v1.12.0" CACHE STRING "Git tag/branch of spdlog")
13 changes: 11 additions & 2 deletions cmake/FetchSpdlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,14 @@ CPMAddPackage(
GIT_TAG ${SPDLOG_TAG}
)

set_target_properties(spdlog PROPERTIES FOLDER "Dependencies")
set_target_properties(spdlog PROPERTIES POSITION_INDEPENDENT_CODE ON)
if(NOT TARGET spdlog)
# Create an alias spdlog for other FetchSpdlog
# dependencies to work that don't have the if(TARGET spdlog) condition
add_library(spdlog INTERFACE)
target_link_libraries(spdlog INTERFACE spdlog::spdlog)
message(STATUS "spdlog target didn't exist, created an alias target")
endif()

if(TARGET spdlog)
set_target_properties(spdlog PROPERTIES FOLDER "Dependencies")
endif()
2 changes: 1 addition & 1 deletion src/SocketWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void SocketWorker::onSocketError(const QAbstractSocket::SocketError e)

void SocketWorker::onSocketStateChanged(QAbstractSocket::SocketState socketState)
{
LOG_INFO("New Socket state : {}", socketState);
LOG_INFO("New Socket state : {}", (int)socketState);
if(socketState == QAbstractSocket::UnconnectedState)
{
onDisconnected();
Expand Down

0 comments on commit 15e9728

Please sign in to comment.