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.
This commit is contained in:
Paweł Bylica 2018-07-24 17:01:25 +02:00
parent 33e22dc8bb
commit 7cd00e3630
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF

View File

@ -6,8 +6,7 @@ macro (eth_policy)
if (${CMAKE_VERSION} VERSION_GREATER 3.0) if (${CMAKE_VERSION} VERSION_GREATER 3.0)
# fix MACOSX_RPATH cmake_policy(SET CMP0042 NEW)
cmake_policy(SET CMP0042 OLD)
# ignore COMPILE_DEFINITIONS_<Config> properties # ignore COMPILE_DEFINITIONS_<Config> properties
cmake_policy(SET CMP0043 OLD) cmake_policy(SET CMP0043 OLD)