Diffusion Kate 7a6e7342ef5a

Honor BUILD_TESTING

Authored by heikobecker on Aug 1 2018, 4:21 PM.

Description

Honor BUILD_TESTING

Summary:
Although ecm_optional_add_subdirectory(autotests) allows to skip
building the autotests with -DBUILD_autotests=FALSE, it doesn't seem
reasonable to have two options controlling similar behaviour and
BUILD_TESTING is the de-facto standard for cmake and already used
when discovering Qt5::Test.

Furthermore it avoids a cmake warning when BUILD_TESTING is set to
FALSE because Qt5::Test is passed to target_link_libraries but
isn't a valid target.

Test Plan: Warning disappears and builds successfully

Reviewers: Kate

Subscribers: kwrite-devel

Tags: Kate

Differential Revision: https://phabricator.kde.org/D14538

Details

Committed
heikobeckerAug 1 2018, 4:29 PM
Differential Revision
D14538: Honor BUILD_TESTING
Parents
R40:f2df33115656: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown
References
tag: v18.07.90