From 12e95abacea066d249e5a352da91061172b0df3f Mon Sep 17 00:00:00 2001 From: asas1asas200 Date: Fri, 10 Nov 2023 10:41:16 +0800 Subject: [PATCH 1/3] Fix CMP0148 warning in CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12113f80b..223467d79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ if (ENABLE_STACK_DEBUG) endif() # For generating the bytes tables -find_package(PythonInterp REQUIRED) +find_package(Python REQUIRED) if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wshadow -Werror ${CMAKE_CXX_FLAGS}") From e0d50470e9d53526b92ccd84bea9abadc4487356 Mon Sep 17 00:00:00 2001 From: asas1asas200 Date: Wed, 15 Nov 2023 16:07:43 +0800 Subject: [PATCH 2/3] bump cmake minimum required to 3.12 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 223467d79..a01520071 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.12) project(pycdc) set(CMAKE_CXX_STANDARD 11) @@ -17,7 +17,7 @@ if (ENABLE_STACK_DEBUG) endif() # For generating the bytes tables -find_package(Python REQUIRED) +find_package(Python COMPONENTS Interpreter REQUIRED) if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wshadow -Werror ${CMAKE_CXX_FLAGS}") From 2c3768244b9e03942ef32393278793d042a755f2 Mon Sep 17 00:00:00 2001 From: asas1asas200 Date: Thu, 16 Nov 2023 19:57:07 +0800 Subject: [PATCH 3/3] Fix var name to match new Find module --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a01520071..af5347c1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ foreach(ver ${PYTHON_VERSIONS}) endforeach() add_custom_command(OUTPUT ${MAP_SOURCES} - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/bytes/comp_map.py ${CMAKE_CURRENT_SOURCE_DIR}/bytes ${CMAKE_CURRENT_BINARY_DIR}/bytes