Trying to fix CMake tests about shared_ptr