This commit is contained in:
parent
966317ffa5
commit
38291e2932
@ -1,13 +0,0 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 597a7de..5185d5d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -2,6 +2,8 @@ project(dbusmenu-qt)
|
||||
cmake_minimum_required(VERSION 2.8.11)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
|
||||
|
||||
+cmake_policy(SET CMP0021 OLD)
|
||||
+
|
||||
# Build options
|
||||
option(WITH_DOC "Build documentation (requires Doxygen)" ON)
|
||||
|
13
full_include_dir.patch
Normal file
13
full_include_dir.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 980e872..abedad7 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -95,7 +95,7 @@ endif()
|
||||
|
||||
# Make sure linking to the target adds dbusmenu-qt install directory
|
||||
target_include_directories(dbusmenu-${QT_SUFFIX}
|
||||
- INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>")
|
||||
+ INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_FULL_INCLUDEDIR}>")
|
||||
|
||||
install(TARGETS dbusmenu-${QT_SUFFIX}
|
||||
EXPORT dbusmenu-${QT_SUFFIX}-targets
|
@ -7,7 +7,7 @@ Mon Sep 15 19:31:29 UTC 2014 - hrvoje.senjan@gmail.com
|
||||
Simply adding dbusmenu-qt5 to the target_link_libraries()
|
||||
call takes care of defining the include directory.
|
||||
- Rebase noqDebug-qWarnings.patch
|
||||
- Added cmake-policy.patch for openSUSE 13.1
|
||||
- Added full_include_dir.patch for openSUSE 13.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 2 21:37:10 UTC 2014 - hrvoje.senjan@gmail.com
|
||||
|
@ -30,8 +30,8 @@ Source1: baselibs.conf
|
||||
# PATCH-FIX-UPSTREAM noqDebug-qWarnings.patch -- libdbusmenu uses it's own qDebug's and qWarnings,
|
||||
# which are useless, and annoy users, so this patch just disables them in release mode
|
||||
Patch1: noqDebug-qWarnings.patch
|
||||
# PATCH-FIX-UPSTREAM cmake-policy.patch -- CMake 2.8.12 creates a fatal error on relative include dirs for a target. silence that policy
|
||||
Patch2: cmake-policy.patch
|
||||
# PATCH-FIX-UPSTREAM full_include_dir.patch -- CMake 2.8.12 creates a fatal error on relative include dirs for a target. silence that policy
|
||||
Patch2: full_include_dir.patch
|
||||
#Needed for DISABLE_FIND_PACKAGE
|
||||
BuildRequires: cmake >= 2.8.6
|
||||
BuildRequires: doxygen
|
||||
@ -71,7 +71,9 @@ This package contains development files for libdbusmenu-qt5.
|
||||
%prep
|
||||
%setup -q -n %{rname}-%{version}
|
||||
%patch1 -p1
|
||||
%if 0%{?suse_version} <= 1310
|
||||
%patch2 -p1
|
||||
%endif
|
||||
|
||||
# Remove build time references so build-compare can do its work
|
||||
sed -i "s/HTML_TIMESTAMP = YES/HTML_TIMESTAMP = NO/" Doxyfile.in
|
||||
|
Loading…
Reference in New Issue
Block a user