blob: 5065cf73f8a2baa113062711ca09ff998e878865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
This file is part of MXE. See LICENSE.md for licensing information.
From ecc6fd682b2bef9aca06ce3f8ac3e6178faf4640 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
Date: Sun, 6 Sep 2015 03:45:19 +0200
Subject: [PATCH] decrease required cmake ver.
2.8.11 -> 2.8.9
Debian Wheezy has CMake version 2.8.9
To make it possible, CMake command target_include_directories
was replaced with command include_directories.
---
CMakeLists.txt | 2 +-
src/CMakeLists.txt | 8 +++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec32cd8..0e7ba11 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.11)
+cmake_minimum_required(VERSION 2.8.9)
project(QHttpEngine)
if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 83f9a4c..0313dc3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -28,11 +28,9 @@ endif()
qt5_use_modules(QHttpEngine Network)
-target_include_directories(QHttpEngine PUBLIC
- "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
- "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
- "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>"
-)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+include_directories(${INCLUDE_INSTALL_DIR})
set_target_properties(QHttpEngine PROPERTIES
DEFINE_SYMBOL QT_NO_SIGNALS_SLOTS_KEYWORDS
--
1.7.10.4
|