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
+1 -2
View File
@@ -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)