--- 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)