[Pkg-owncloud-commits] [qtkeychain] 73/115: Add the ability to build with Qt4 even if Qt5 was found
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Mar 15 19:25:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository qtkeychain.
commit 8722799afe5f706af2c10c31e96da1d8a6679035
Author: Uwe L. Korn <uwelk at xhochy.com>
Date: Sat Aug 3 16:32:52 2013 +0200
Add the ability to build with Qt4 even if Qt5 was found
---
CMakeLists.txt | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 701c9ae..6753722 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,8 +11,13 @@ set(QTKEYCHAIN_SOVERSION 0)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Modules")
include(GNUInstallDirs)
-# try Qt5 first, and prefer that if found
-find_package(Qt5Core QUIET)
+option(BUILD_WITH_QT4 "Build qtkeychain with Qt4 no matter if Qt5 was found" OFF)
+
+if( NOT BUILD_WITH_QT4 )
+ # try Qt5 first, and prefer that if found
+ find_package(Qt5Core QUIET)
+endif()
+
if (Qt5Core_FOUND)
if(UNIX AND NOT APPLE)
find_package(Qt5DBus REQUIRED)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git
More information about the Pkg-owncloud-commits
mailing list