-- Configuring done CMake Error at /usr/share/ECM/modules/ECMAddTests.cmake:110 (add_executable): Target "urltest" links to target "Qt5::Test" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): autotests/CMakeLists.txt:3 (ecm_add_test) $ emerge --info kde-misc/kio-gdrive Portage 2.3.6 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-7.1.0, glibc-2.24-r3, 4.11.4-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.11.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.4.1 KiB Mem: 32860360 total, 272924 free KiB Swap: 33791996 total, 33791576 free Timestamp of repository gentoo: Tue, 20 Jun 2017 13:45:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r3::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo sys-devel/binutils: 2.27::gentoo, 2.28-r2::gentoo sys-devel/gcc: 6.3.0::gentoo, 7.1.0-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r3::gentoo Repositories: gentoo location: /var/portage/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/ priority: -1000 sync-rsync-extra-opts: --quiet andy location: /var/portage/repository/andy sync-type: git sync-uri: git://anongit.gentoo.org/user/andy.git masters: gentoo priority: 50 bobwya location: /var/portage/repository/bobwya sync-type: git sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git masters: gentoo priority: 50 dotnet location: /var/portage/repository/dotnet sync-type: git sync-uri: git://anongit.gentoo.org/proj/dotnet.git masters: gentoo priority: 50 eigenlay location: /var/portage/repository/eigenlay sync-type: git sync-uri: https://git.gitorious.org/eigennet/eigenlay.git masters: gentoo priority: 50 fkmclane location: /var/portage/repository/fkmclane sync-type: git sync-uri: git://github.com/fkmclane/overlay.git masters: gentoo priority: 50 gamerlay location: /var/portage/repository/gamerlay sync-type: git sync-uri: git://anongit.gentoo.org/proj/gamerlay.git masters: gentoo priority: 50 kde location: /var/portage/repository/kde sync-type: git sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 multimedia location: /var/portage/repository/multimedia sync-type: git sync-uri: https://github.com/gentoo/multimedia.git masters: gentoo priority: 50 mv location: /var/portage/repository/mv sync-type: git sync-uri: git://anongit.gentoo.org/user/mv.git masters: gentoo priority: 50 qt location: /var/portage/repository/qt sync-type: git sync-uri: git://anongit.gentoo.org/proj/qt.git masters: gentoo priority: 50 science location: /var/portage/repository/science sync-type: git sync-uri: git://anongit.gentoo.org/proj/sci.git masters: gentoo priority: 50 steam-overlay location: /var/portage/repository/steam-overlay sync-type: git sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 sunrise location: /var/portage/repository/sunrise sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/sunrise-reviewed.git masters: gentoo priority: 50 x11 location: /var/portage/repository/x11 sync-type: git sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 fontconfig-ultimate location: /var/portage/repository/fontconfig-ultimate masters: gentoo priority: 80 my-gentoo location: /var/portage/repository/my-gentoo masters: gentoo priority: 80 xanf location: /home/eugene/develop/xanf/distribution/Gentoo/repository masters: gentoo priority: 80 Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA @FSF-APPROVED google-chrome skype-eula dlj-1.1 PUEL Google-TOS googleearth TeamViewer Oracle-BCLA-JavaSE skype-4.0.0.7-copyright AdobeFlash-11.x Intel-SDP" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build --keep-going" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://de-mirror.org/gentoo/" LANG="uk_UA.UTF-8" LDFLAGS="-Wl,-O1 -march=native -O2 -pipe" MAKEOPTS="-j4" PKGDIR="/var/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--quiet" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/portage/tmp" USE="X a52 aac acl acpi alsa amd64 amr apng attica avahi bash-completion berkdb bluetooth bluray branding bs2b btrfs bzip2 cairo canberra caps cdda cdr cli colord cracklib crypt css cups cxx dbus declarative dirac djvu dovecot dri dts dv dvd dvdnav dvdr efi egl emboss encode exif faac fam ffmpeg firefox flac fontconfig fortran fuse gdbm geoip gif git glamor gmp gnuplot gnutls gold gpm gsm gstreamer gtk gtk3 harfbuzz iconv idn ieee1394 imagemagick inotify iproute2 ipv6 jemalloc jit jpeg jpeg2k kde kerberos kipi kwallet lame lapack latex lcms ldap libass libinput libnotify libsamplerate libsecret live lto luatex lzma mad metalink mng modules mp3 mp4 mpeg mpi mpris mtp multicall multilib ncurses netlink network networkmanager nfs nftables nls nptl ogg openexr opengl openmp openssl pam pango pch pcre pdf phonon pkcs11 plasma png policykit postscript ppds pulseaudio qml qt3support qt5 quicktime quvi radio readline romio rss rtmp samba scanner sctp sdl seccomp semantic-desktop session slp smartcard smp speex spell sqlite ssl startup-notification svg symlink system-icu system-sqlite systemd taglib tcpd theora threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wayland widgets wifi wxwidgets x264 x265 xattr xcb xcomposite xetex xft xinerama xml xmp xrandr xscreensaver xv xvid yv12 zeroconf zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma fma3 mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="libinput evdev libinput" KERNEL="linux" L10N="en en-GB eo de ru uk ru uk" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LINGUAS="en en_GB eo de ru uk ru_RU uk_UA" LIRC_DEVICES="alsa_usb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" SANE_BACKENDS="epson2 net" USERLAND="GNU" VIDEO_CARDS="v4l radeon radeonsi intel i965 amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, USE_PYTHON ================================================================= Package Settings ================================================================= kde-misc/kio-gdrive-9999::kde was built with the following: USE="handbook -debug -test" ABI_X86="(64)"
So, when you pass -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=ON, probably a call to 'cmake_comment_add_subdirectory autotests' would make sense?
It seems 1.2 branch simply was not merged back to master yet.