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
commit1ea338a852ea9e4c09ec45809c06c57b9a183372 (patch)
tree0c5969144f45813588c7d698d14f71ffdb3aaa21
parentc8954e1e7c1049fc8b4161f112c6c834edce9d58 (diff)
downloaddexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.tar
dexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.tar.gz
dexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.tar.bz2
dexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.tar.lz
dexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.tar.xz
dexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.tar.zst
dexon-solidity-1ea338a852ea9e4c09ec45809c06c57b9a183372.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 6843aaf2..f8150806 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")