message: Fixed the linking error for test cases which happened on some systems.
diff: @@ -6,6 +6,13 @@ function(create_test test_name)
  set_target_properties(${TEST_TARGET_NAME} PROPERTIES
  OUTPUT_NAME ${test_name})
  target_link_libraries(${TEST_TARGET_NAME} PRIVATE ginkgo gtest_main)
  + # Needed because it causes undefined reference errors on some systems.
  + # To prevent that, the library files are added to the linker again.
  + target_link_libraries(${TEST_TARGET_NAME}
  + PRIVATE $<TARGET_LINKER_FILE:ginkgo_cuda>
  + $<TARGET_LINKER_FILE:ginkgo_reference>
  + $<TARGET_LINKER_FILE:ginkgo_omp>
  + $<TARGET_LINKER_FILE:ginkgo>)
  add_test(NAME ${REL_BINARY_DIR}/${test_name} COMMAND ${TEST_TARGET_NAME})
  endfunction(create_test)
  @@ -17,5 +24,10 @@ function(create_cuda_test test_name)
  set_target_properties(${TEST_TARGET_NAME} PROPERTIES
  OUTPUT_NAME ${test_name})
  target_link_libraries(${TEST_TARGET_NAME} PRIVATE ginkgo gtest_main)
  + # Needed because it causes undefined reference errors on some systems.
  + # To prevent that, the library files are added to the linker again.
  + target_link_libraries(${TEST_TARGET_NAME}
  + PRIVATE $<TARGET_LINKER_FILE:ginkgo_cuda>
  + $<TARGET_LINKER_FILE:ginkgo>)
  add_test(NAME ${REL_BINARY_DIR}/${test_name} COMMAND ${TEST_TARGET_NAME})
  endfunction(create_cuda_test)
  