1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Author: Maarten L. Hekkelman <maarten@hekkelman.com>
Last-Update: 2024-12-16
Bug-Debian: https://bugs.debian.org/1079107
Description: Fix cmake for new upstream version
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -13,6 +13,11 @@ set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
+cmake_policy(SET CMP0148 NEW)
+
+set(PYBIND11_FINDPYTHON ON)
+find_package(pybind11 REQUIRED)
+
pybind11_add_module(sfst
sfst.cpp
)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,7 +16,3 @@ configure_file(${CMAKE_CURRENT_SOURCE_DI
# add library code
add_subdirectory(src)
-
-# add python bindings
-add_subdirectory(pybind11)
-add_subdirectory(python)
|