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:
parent
3e0f5d89ba
commit
095b48aabf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue