Skip to content

Commit

Permalink
chore: Improve cmake logic to set KDDW_HAS_SPDLOG
Browse files Browse the repository at this point in the history
Just check that the package has been found.
  • Loading branch information
iamsergio committed Aug 3, 2024
1 parent 810c0f8 commit e8ee06f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e8ee06f

Please sign in to comment.