The enable_sanitizers function can optionally enable code coverage flags to be applied (if ENABLE_COVERAGE=TRUE). In that case, it will create the targets code-coverage-capture and code-coverage-clean. Unforunately, this means that if you try to apply the sanitizers to any other library then it will try to create additional targets with the same name, causing a CMake error.
Relatedly, the code-coverage-capture target has a hard-coded reference to the directory ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/bout++.dir/src. This means it can actually only be used with the bout++ library.