aboutsummaryrefslogtreecommitdiff
path: root/misc/mosquitto/010_no-cmp0042.diff
blob: c68f14a9a5bdc1230eba2e1bff164c91dcc2d28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- CMakeLists.txt.orig	2015-02-18 11:44:09.000000000 +1000
+++ CMakeLists.txt	2015-02-23 15:30:27.797877114 +1000
@@ -9,7 +9,9 @@
 project(mosquitto)
 
 cmake_minimum_required(VERSION 2.8)
-cmake_policy(SET CMP0042 NEW)
+if (POLICY CMP0042)
+	cmake_policy(SET CMP0042 NEW)	# CMake 3
+endif (POLICY CMP0042)
 
 set (VERSION 1.4)