Revert "fixed cmake policy CMP0042, MACOSX RPATH"
@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 2.8.12)
set(PROJECT_VERSION "0.9.39")
if (${CMAKE_VERSION} VERSION_GREATER 3.0)
cmake_policy(SET CMP0042 NEW) # fix MACOSX_RPATH
cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project()
project(ethereum VERSION ${PROJECT_VERSION})
else()
@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 2.8.12)
project(EVMJIT VERSION 0.9.0 LANGUAGES CXX)
@ -1,4 +1,11 @@
cmake_policy(SET CMP0015 NEW)
# this policy was introduced in cmake 3.0
# remove if, once 3.0 will be used on unix
if (${CMAKE_MAJOR_VERSION} GREATER 2)
# old policy do not use MACOSX_RPATH
cmake_policy(SET CMP0042 OLD)
endif()
set(CMAKE_AUTOMOC OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
@ -1,4 +1,10 @@
aux_source_directory(. SRC_LIST)
@ -4,6 +4,8 @@ cmake_policy(SET CMP0020 NEW)
cmake_policy(SET CMP0043 OLD)
set(EXECUTABLE secp256k1)