[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [qca] /: Make Qt5Network conditional on BUILD_TESTS
From: Andreas Sturmlechner <null () kde ! org>
Date: 2018-06-06 9:21:22
Message-ID: E1fQUd8-0003sm-K3 () code ! kde ! org
[Download RAW message or body]
Git commit e854f357f4037e2c8c781ebd04ec5164a882b9b3 by Andreas Sturmlechner.
Committed on 06/06/2018 at 09:21.
Pushed by asturmlechner into branch 'master'.
Make Qt5Network conditional on BUILD_TESTS
Summary: I did not find it in use somewhere else.
Reviewers: iromanov, sitter, rjvbb
Reviewed By: rjvbb
Subscribers: fvogt
Differential Revision: https://phabricator.kde.org/D12129
M +5 -1 CMakeLists.txt
https://commits.kde.org/qca/e854f357f4037e2c8c781ebd04ec5164a882b9b3
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28b0169..65b95f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,11 @@ if (Qt5Core_FOUND)
message(STATUS "Building with Qt5 support")
# Got from ECM
# Distros have no ECM. So I just copied required cmake modules.
- find_package(Qt5Transitional REQUIRED Core Network)
+ if(BUILD_TESTS)
+ find_package(Qt5Transitional REQUIRED Core Network)
+ else()
+ find_package(Qt5Transitional REQUIRED Core)
+ endif()
include(ECMQt4To5Porting)
=
include(GNUInstallDirs)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic