summaryrefslogtreecommitdiff
path: root/misc/mosquitto/010_no-cmp0042.diff
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mosquitto/010_no-cmp0042.diff')
-rw-r--r--misc/mosquitto/010_no-cmp0042.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/mosquitto/010_no-cmp0042.diff b/misc/mosquitto/010_no-cmp0042.diff
new file mode 100644
index 0000000000..c68f14a9a5
--- /dev/null
+++ b/misc/mosquitto/010_no-cmp0042.diff
@@ -0,0 +1,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)
+