johu        15/02/14 22:09:58

  Added:                kio-9999-tests-optional.patch
  Log:
  Version bump KDE Frameworks 5.7.0
  
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 
F3CFD2BD)

Revision  Changes    Path
1.1                  kde-frameworks/kio/files/kio-9999-tests-optional.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-frameworks/kio/files/kio-9999-tests-optional.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-frameworks/kio/files/kio-9999-tests-optional.patch?rev=1.1&content-type=text/plain

Index: kio-9999-tests-optional.patch
===================================================================
--- a/CMakeLists.txt    2015-01-21 01:30:56.784894492 +0100
+++ b/CMakeLists.txt    2015-01-21 01:34:51.192505604 +0100
@@ -57,7 +57,7 @@
 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
 
 set(REQUIRED_QT_VERSION 5.2.0)
-find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets DBus Network 
Concurrent Xml Test)
+find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Widgets DBus Network 
Concurrent Xml)
 
 find_package(GSSAPI)
 set_package_properties(GSSAPI PROPERTIES DESCRIPTION "Allows KIO to make use 
of certain HTTP authentication services"
@@ -85,10 +85,13 @@
 endif()
 include(CheckLibraryExists)
 add_subdirectory(src)
-add_subdirectory(autotests)
 
-if (NOT KIOCORE_ONLY)
-add_subdirectory(tests)
+if(BUILD_TESTING)
+    find_package(Qt5Test ${REQUIRED_QT_VERSION} CONFIG REQUIRED)
+    add_subdirectory(autotests)
+    if (NOT KIOCORE_ONLY)
+        add_subdirectory(tests)
+    endif()
 endif()
 
 # create a Config.cmake and a ConfigVersion.cmake file and install them




Reply via email to