From 095b48aabf7af827995ef836b9b2336d3aebd98d Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 21 Feb 2017 16:47:31 -0800 Subject: [PATCH] minor fix for Ubuntu 14 (cmake) Check that the CMAKE_VERSION is 3.0 or greater when setting the CMP0043 policy to NEW. The Ubuntu 14 cmake which is 2.8.12 throws an unknown policy error otherwise. --- src/wx/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 6578fe89..2ed49efa 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1,7 +1,9 @@ #Do not use this file directly. Always use the top level CMakeLists.txt file # This build is much easier if we just do it here. -cmake_policy(SET CMP0043 NEW) # for wxWidgets +IF(NOT CMAKE_VERSION VERSION_LESS 3.0) + cmake_policy(SET CMP0043 NEW) # for wxWidgets +ENDIF() # not yet implemented SET(CAIRO_DEFAULT OFF)