Skip to content

Commit 1e6f4cb

Browse files
committed
fix(dash): untangle test/CMakeLists.txt stratum-binding merge resolution
Rebase-clean union of the #628-vs-#630 add_executable collision left target_link_libraries(test_dash_share_messages) opened but unterminated with add_executable(test_dash_stratum_binding) interleaved into it, producing CMake parse error at test/CMakeLists.txt:322 (missing ending ) and breaking configure on all platforms (macOS/Windows failed fast; Linux would follow). Split into two complete, separate target blocks. Configure clean; test_dash_stratum_binding builds; ctest 6/6.
1 parent 4c2ea55 commit 1e6f4cb

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,21 @@ if (BUILD_TESTING AND GTest_FOUND)
320320

321321
add_executable(test_dash_share_messages test_dash_share_messages.cpp)
322322
target_link_libraries(test_dash_share_messages PRIVATE
323-
add_executable(test_dash_stratum_binding test_dash_stratum_binding.cpp)
324-
target_link_libraries(test_dash_stratum_binding PRIVATE
325323
GTest::gtest_main GTest::gtest
326324
dash_x11 core
327325
nlohmann_json::nlohmann_json
328326
${Boost_LIBRARIES}
329327
)
330328
target_link_libraries(test_dash_share_messages PRIVATE c2pool_payout c2pool_hashrate c2pool_merged_mining) # OBJECT-lib SCC direct-naming (#22/#39)
331329
gtest_add_tests(test_dash_share_messages "" AUTO)
330+
331+
add_executable(test_dash_stratum_binding test_dash_stratum_binding.cpp)
332+
target_link_libraries(test_dash_stratum_binding PRIVATE
333+
GTest::gtest_main GTest::gtest
334+
dash_x11 core
335+
nlohmann_json::nlohmann_json
336+
${Boost_LIBRARIES}
337+
)
332338
target_link_libraries(test_dash_stratum_binding PRIVATE c2pool_payout c2pool_hashrate c2pool_merged_mining) # OBJECT-lib SCC direct-naming (#22/#39)
333339
gtest_add_tests(test_dash_stratum_binding "" AUTO)
334340

0 commit comments

Comments
 (0)