find_package(Boost 1.64 REQUIRED COMPONENTS unit_test_framework)

set(CMAKE_CXX_STANDARD 14)

add_executable(chain_unit_test
    test.cpp
    block_test.cpp
    name_test.cpp
    )
target_include_directories(chain_unit_test PRIVATE ${Boost_INCLUDE_DIRS})
target_compile_definitions(chain_unit_test PRIVATE "BOOST_TEST_DYN_LINK=1")
target_link_libraries(chain_unit_test ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} eosio_chain)

add_test(chain_unit_test chain_unit_test)

find_package(Boost 1.64 REQUIRED COMPONENTS unit_test_framework)

set(CMAKE_CXX_STANDARD 14)

add_executable(chain_unit_test
    test.cpp
    block_test.cpp
    name_test.cpp
    )
target_include_directories(chain_unit_test PRIVATE ${Boost_INCLUDE_DIRS})
target_compile_definitions(chain_unit_test PRIVATE "BOOST_TEST_DYN_LINK=1")
target_link_libraries(chain_unit_test eosio_chain)

add_test(chain_unit_test chain_unit_test)

Remove Boost unit test library linkage from chain_unit_test cmake
Remove Boost unit test library linkage from chain_unit_test cmake

Our root CMakeLists asks for several boost libraries to be linked, unit test being one of them. The addtional request for boost unit test library in chain_unit_test can cause duplicate symbols at link time
