Skip to content

Commit f32b330

Browse files
committed
fix compialtion try
1 parent bce517f commit f32b330

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cmake/external_dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function(find_package_or_fetch)
4040
FetchContent_MakeAvailable(${arg_PACKAGE_NAME})
4141
message(STATUS "\t✅ Fetched ${arg_PACKAGE_NAME}")
4242
else()
43-
message(STATUS "📦 ${actual_pkg_name} found here: ${actual_pkg_name}_DIR")
43+
message(STATUS "📦 ${actual_pkg_name} found here: ${${actual_pkg_name}_DIR}")
4444
endif()
4545
endif()
4646
endfunction()

tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ target_link_libraries(${test_target}
2222
)
2323

2424
if(WIN32)
25+
find_package(date REQUIRED) # For copying DLLs
2526
add_custom_command(
2627
TARGET ${test_target} POST_BUILD
2728
COMMAND ${CMAKE_COMMAND} -E copy
@@ -33,6 +34,9 @@ if(WIN32)
3334
COMMAND ${CMAKE_COMMAND} -E copy
3435
"$<TARGET_FILE:sparrow::json_reader>"
3536
"$<TARGET_FILE_DIR:${test_target}>"
37+
COMMAND ${CMAKE_COMMAND} -E copy
38+
"$<TARGET_FILE:date::date-tz>"
39+
"$<TARGET_FILE_DIR:${test_target}>"
3640
COMMENT "Copying sparrow and sparrow-ipc DLLs to executable directory"
3741
)
3842
endif()

0 commit comments

Comments
 (0)