diff options
author | Paweł Bylica <chfast@gmail.com> | 2018-07-24 23:01:25 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2018-07-24 23:01:25 +0800 |
commit | 7cd00e36303f280a703c21593446131c83ce57d0 (patch) | |
tree | ff693d781724fbe72b6d5a7b1e34906595545082 | |
parent | 33e22dc8bbe59bf07290bc47c27c10d9a42c6a75 (diff) | |
download | dexon-solidity-7cd00e36303f280a703c21593446131c83ce57d0.tar.gz dexon-solidity-7cd00e36303f280a703c21593446131c83ce57d0.tar.zst dexon-solidity-7cd00e36303f280a703c21593446131c83ce57d0.zip |
CMake: Set CMP0042 to NEW
This should not affect solidity, but with this setting all supported CMake version will use NEW policy are will be allowed to use RPATH on macOS.
-rw-r--r-- | cmake/EthPolicy.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/EthPolicy.cmake b/cmake/EthPolicy.cmake index 047b429a..76d49051 100644 --- a/cmake/EthPolicy.cmake +++ b/cmake/EthPolicy.cmake @@ -6,8 +6,7 @@ macro (eth_policy) if (${CMAKE_VERSION} VERSION_GREATER 3.0) - # fix MACOSX_RPATH - cmake_policy(SET CMP0042 OLD) + cmake_policy(SET CMP0042 NEW) # ignore COMPILE_DEFINITIONS_<Config> properties cmake_policy(SET CMP0043 OLD) |