diff options
Diffstat (limited to 'net-libs/libmediawiki/files/libmediawiki-5.37.0-tests-optional.patch')
-rw-r--r-- | net-libs/libmediawiki/files/libmediawiki-5.37.0-tests-optional.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-libs/libmediawiki/files/libmediawiki-5.37.0-tests-optional.patch b/net-libs/libmediawiki/files/libmediawiki-5.37.0-tests-optional.patch new file mode 100644 index 000000000000..7b910e028a47 --- /dev/null +++ b/net-libs/libmediawiki/files/libmediawiki-5.37.0-tests-optional.patch @@ -0,0 +1,15 @@ +--- a/CMakeLists.txt 2017-05-20 11:13:08.095098473 +0200 ++++ b/CMakeLists.txt 2017-05-20 11:18:00.993712729 +0200 +@@ -45,8 +45,10 @@ + + # Subdirectories + add_subdirectory(src) +-add_subdirectory(autotests) +-add_subdirectory(tests) ++if(BUILD_TESTING) ++ add_subdirectory(autotests) ++ add_subdirectory(tests) ++endif() + + # Create a Config.cmake and a ConfigVersion.cmake file and install them + set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5MediaWiki") |