From 8d0faee896100f9dd06da94de4efea2084d1da99 Mon Sep 17 00:00:00 2001 From: Myrtle Shah Date: Fri, 15 Oct 2021 13:26:39 +0100 Subject: [PATCH] cmake: Set policy needed for latest FindPython to work Signed-off-by: Myrtle Shah --- crlcore/CMakeLists.txt | 2 ++ hurricane/CMakeLists.txt | 1 + unicorn/CMakeLists.txt | 1 + unittests/CMakeLists.txt | 1 + 4 files changed, 5 insertions(+) diff --git a/crlcore/CMakeLists.txt b/crlcore/CMakeLists.txt index 58d2ccfb..a753658a 100644 --- a/crlcore/CMakeLists.txt +++ b/crlcore/CMakeLists.txt @@ -22,6 +22,8 @@ setup_boost(program_options) setup_qt() + cmake_policy(SET CMP0054 NEW) + if (USE_LIBBFD) find_package(Libbfd) endif() diff --git a/hurricane/CMakeLists.txt b/hurricane/CMakeLists.txt index 76ae6d43..98296140 100644 --- a/hurricane/CMakeLists.txt +++ b/hurricane/CMakeLists.txt @@ -17,6 +17,7 @@ list(INSERT CMAKE_MODULE_PATH 0 "${HURRICANE_SOURCE_DIR}/cmake_modules/") set_cmake_policies() + cmake_policy(SET CMP0054 NEW) setup_boost(program_options) setup_qt() diff --git a/unicorn/CMakeLists.txt b/unicorn/CMakeLists.txt index 0a6381b8..128d1758 100644 --- a/unicorn/CMakeLists.txt +++ b/unicorn/CMakeLists.txt @@ -15,6 +15,7 @@ setup_project_paths(CORIOLIS) set_cmake_policies() + cmake_policy(SET CMP0054 NEW) setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_boost(program_options) setup_qt() diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 637aab6d..b15768d7 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -16,6 +16,7 @@ print_cmake_module_path() set_cmake_policies() + cmake_policy(SET CMP0054 NEW) check_distribution() setup_sysconfdir("${CMAKE_INSTALL_PREFIX}") setup_boost(program_options)