sys-process/glances: 3.1.4.1-r1 amd64 stable, bug #720368
[gentoo.git] / net-libs / libmediawiki / files / libmediawiki-5.37.0-tests-optional.patch
1 --- a/CMakeLists.txt    2017-05-20 11:13:08.095098473 +0200
2 +++ b/CMakeLists.txt    2017-05-20 11:18:00.993712729 +0200
3 @@ -45,8 +45,10 @@
4  
5  # Subdirectories
6  add_subdirectory(src)
7 -add_subdirectory(autotests)
8 -add_subdirectory(tests)
9 +if(BUILD_TESTING)
10 +    add_subdirectory(autotests)
11 +    add_subdirectory(tests)
12 +endif()
13  
14  # Create a Config.cmake and a ConfigVersion.cmake file and install them
15  set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5MediaWiki")