From e140fce2808e31aed62d8b9001de2e7b30e241ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 21 Jul 2015 20:19:31 +0200 Subject: [PATCH] Add support for cmake 2.8. --- evmjit/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/evmjit/CMakeLists.txt b/evmjit/CMakeLists.txt index 055d66002..242986cd9 100644 --- a/evmjit/CMakeLists.txt +++ b/evmjit/CMakeLists.txt @@ -1,7 +1,15 @@ -cmake_minimum_required(VERSION 3.0) -cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project() +cmake_minimum_required(VERSION 2.8.12) -project(EVMJIT VERSION 0.9.0 LANGUAGES CXX) +if (${CMAKE_VERSION} VERSION_GREATER 3.0) + cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project() + project(EVMJIT VERSION 0.9.0 LANGUAGES CXX) +else() + project(EVMJIT) + set(EVMJIT_VERSION "0.9.0") + set(EVMJIT_VERSION_MAJOR 0) + set(EVMJIT_VERSION_MINOR 9) + set(EVMJIT_VERSION_PATCH 0) +endif() set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(CMAKE_AUTOMOC OFF)