aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-08-05 23:57:22 +0800
committerGav Wood <g@ethdev.com>2015-08-05 23:57:22 +0800
commit876f54694aa2ec98eb17e2d0d96a59e55f0d0ad9 (patch)
tree345801c644cbe85b32f3acfe7f2b30860c89753f
parentd512c8639cd8cd0e8781bf3bda7a0a1ef4fac5bf (diff)
downloaddexon-solidity-876f54694aa2ec98eb17e2d0d96a59e55f0d0ad9.tar.gz
dexon-solidity-876f54694aa2ec98eb17e2d0d96a59e55f0d0ad9.tar.zst
dexon-solidity-876f54694aa2ec98eb17e2d0d96a59e55f0d0ad9.zip
Revert "fixed cmake policy CMP0042, MACOSX RPATH"
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 21fc18f9..66f32e4d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,10 @@
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")