Browse Source

Add support for cmake 2.8.

cl-refactor
Paweł Bylica 10 years ago
parent
commit
e140fce280
  1. 14
      evmjit/CMakeLists.txt

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

Loading…
Cancel
Save