head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.6 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.4 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.2 pkgsrc-2025Q3-base:1.2; locks; strict; comment @# @; 1.2 date 2025.08.22.14.36.05; author wiz; state Exp; branches; next 1.1; commitid BirTpA5XeI3PCJ7G; 1.1 date 2025.08.19.10.15.19; author wiz; state Exp; branches; next ; commitid mZ8yaiQtdN1lhk7G; desc @@ 1.2 log @py-keystone: fix build with cmake 4 @ text @$NetBSD: patch-CMakeLists.txt,v 1.1 2025/08/19 10:15:19 wiz Exp $ Fix build with cmake 4. --- CMakeLists.txt.orig 2020-06-21 12:03:54.000000000 +0000 +++ CMakeLists.txt @@@@ -1,7 +1,7 @@@@ # Keystone Assembler Engine (www.keystone-engine.org) # By Nguyen Anh Quynh, 2016 -cmake_minimum_required(VERSION 2.8.7) +cmake_minimum_required(VERSION 3.5) project(keystone) set(KEYSTONE_VERSION_MAJOR 0) @@@@ -18,15 +18,6 @@@@ if (POLICY CMP0022) cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required endif() -if (POLICY CMP0051) - # CMake 3.1 and higher include generator expressions of the form - # $ in the SOURCES property. These need to be - # stripped everywhere that access the SOURCES property, so we just - # defer to the OLD behavior of not including generator expressions - # in the output for now. - cmake_policy(SET CMP0051 OLD) -endif() - if (POLICY CMP0063) set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) # automatic when 3.3.2 is required endif() @ 1.1 log @keystone: fix build with cmake 4 @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- CMakeLists.txt.orig 2025-08-19 10:14:17.969503233 +0000 d7 9 @