Please find a patch to fix this issue attached. It may be applied onto
the already existing 01_Add_CMakeLists.patch

regards,
Florian
From a373b9bf9a2f5d0e87c944934426c74e17859345 Mon Sep 17 00:00:00 2001
From: Florian Preinstorfer <f...@xell.at>
Date: Mon, 22 Sep 2014 10:38:28 +0200
Subject: [PATCH] Require CMake version 3.0.

---
 CMakeLists.txt                                       | 6 +++---
 examples/interactions/CMakeLists.txt                 | 2 +-
 examples/plots/CMakeLists.txt                        | 2 +-
 examples/scrollbar-axis-range-control/CMakeLists.txt | 2 +-
 examples/text-document-integration/CMakeLists.txt    | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e961964..72f5735 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT(qcustomplot CXX)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
 
 SET(Q_MAJOR_VERSION "1")
 SET(Q_MINOR_VERSION "2")
@@ -19,11 +19,11 @@ set(Q_SOVERSION "${Q_MAJOR_VERSION}.${Q_MINOR_VERSION}")
 ADD_LIBRARY(qcustomplot SHARED qcustomplot.cpp)
 QT5_USE_MODULES(qcustomplot Widgets)
 
-SET_TARGET_PROPERTIES(qcustomplot PROPERTIES 
+SET_TARGET_PROPERTIES(qcustomplot PROPERTIES
   VERSION ${Q_VERSION}
   SOVERSION ${Q_SOVERSION})
 TARGET_LINK_LIBRARIES(qcustomplot ${Qt5Widgets_LIBRARIES} Qt5::PrintSupport)
 
 INSTALL(TARGETS qcustomplot DESTINATION "${CMAKE_INSTALL_LIBDIR}")
 INSTALL(FILES qcustomplot.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
-INSTALL(FILES cmake/FindQCustomPlot.cmake DESTINATION "/usr/share/cmake-2.8/Modules")
+INSTALL(FILES cmake/FindQCustomPlot.cmake DESTINATION "/usr/share/cmake-3.0/Modules")
diff --git a/examples/interactions/CMakeLists.txt b/examples/interactions/CMakeLists.txt
index 2a64a60..3f7587f 100644
--- a/examples/interactions/CMakeLists.txt
+++ b/examples/interactions/CMakeLists.txt
@@ -1,5 +1,5 @@
 project(interactions CXX)
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.0
 
 FIND_PACKAGE(QCustomPlot REQUIRED)
 FIND_PACKAGE(Qt5PrintSupport REQUIRED)
diff --git a/examples/plots/CMakeLists.txt b/examples/plots/CMakeLists.txt
index cb123a6..db1f6cb 100644
--- a/examples/plots/CMakeLists.txt
+++ b/examples/plots/CMakeLists.txt
@@ -1,5 +1,5 @@
 project(plots CXX)
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.0)
 
 FIND_PACKAGE(QCustomPlot REQUIRED)
 FIND_PACKAGE(Qt5PrintSupport REQUIRED)
diff --git a/examples/scrollbar-axis-range-control/CMakeLists.txt b/examples/scrollbar-axis-range-control/CMakeLists.txt
index 31e5591..91f0960 100644
--- a/examples/scrollbar-axis-range-control/CMakeLists.txt
+++ b/examples/scrollbar-axis-range-control/CMakeLists.txt
@@ -1,5 +1,5 @@
 project(scrollbar CXX)
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.0)
 
 FIND_PACKAGE(QCustomPlot REQUIRED)
 FIND_PACKAGE(Qt5PrintSupport REQUIRED)
diff --git a/examples/text-document-integration/CMakeLists.txt b/examples/text-document-integration/CMakeLists.txt
index 549d695..a480d4b 100644
--- a/examples/text-document-integration/CMakeLists.txt
+++ b/examples/text-document-integration/CMakeLists.txt
@@ -1,5 +1,5 @@
 project(text CXX)
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.0)
 
 FIND_PACKAGE(QCustomPlot REQUIRED)
 FIND_PACKAGE(Qt5PrintSupport REQUIRED)
-- 
2.1.0

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to