Kokkos: CMake Error (ADD_LIBRARY): add_library cannot create target "trilinos_kokkos_gtest" because another target with the same name already exists.
Created by: nschloe
When configuring Trilinos from master, I'm getting
Processing enabled package: Tpetra (Classic, Kernels, TSQR, Core, Tests)
-- Tpetra execution space availability (ON means available):
-- - Serial: ON
-- - Threads: OFF
-- - OpenMP: OFF
-- - Cuda: OFF
-- Setting default Node to Kokkos::Compat::KokkosSerialWrapperNode.
CMake Error at cmake/tribits/core/package_arch/TribitsLibraryMacros.cmake:731 (ADD_LIBRARY):
add_library cannot create target "trilinos_kokkos_gtest" because another
target with the same name already exists. The existing target is a shared
library created in source directory
"/home/nschloe/software/trilinos/source-upstream/packages/kokkos/core/unit_test".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
packages/tpetra/kernels/unit_test/graph/CMakeLists.txt:13 (TRIBITS_ADD_LIBRARY)
and the configuration fails.