From e8ee06f679e1207d6f5270a906d3f0b519f41653 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sat, 3 Aug 2024 12:46:50 +0100 Subject: [PATCH] chore: Improve cmake logic to set KDDW_HAS_SPDLOG Just check that the package has been found. --- tests/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8bd7d23a6..ca1931f61 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -109,8 +109,7 @@ function(add_kddw_test test srcs) _add_test(${test}) endif() target_compile_definitions(${test} PRIVATE KDDW_SRC_DIR="${CMAKE_SOURCE_DIR}") - if(NOT WIN32) - # we don't have spdlog in our windows CI + if(KDDockWidgets_HAS_SPDLOG) target_compile_definitions(${test} PRIVATE KDDW_HAS_SPDLOG) endif() endfunction()