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.
This commit is contained in:
Rafael Kitover 2017-02-21 16:47:31 -08:00
parent 3e0f5d89ba
commit 095b48aabf
1 changed files with 3 additions and 1 deletions

View File

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