freebsd-ports/graphics/py-f3d/files/patch-CMakeLists.txt
Yuri Victorovich 08d823076b graphics/{,py-}f3d: update 2.1.0 → 2.2.1
Reported by:	portscout
2024-01-09 09:38:19 -08:00

20 lines
951 B
Text

--- CMakeLists.txt.orig 2023-10-04 06:49:20 UTC
+++ CMakeLists.txt
@@ -5,7 +5,7 @@ include(f3dPython)
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}/cmake")
include(f3dPython)
-find_package(Python 3.6 COMPONENTS Interpreter Development)
+find_package(Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development)
find_package(pybind11 2.2 REQUIRED)
pybind11_add_module(pyf3d MODULE F3DPythonBindings.cxx)
@@ -21,7 +21,7 @@ set(f3d_python_package_suffix "python${Python_VERSION_
set(f3d_python_package_name "f3d")
set(f3d_python_package_suffix "python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages")
-set(f3d_module_dir "${CMAKE_BINARY_DIR}$<${F3D_MULTI_CONFIG_GENERATOR}:/$<CONFIG>>/${f3d_python_package_name}")
+set(f3d_module_dir "${CMAKE_BINARY_DIR}/${f3d_python_package_name}") # workaround for https://github.com/f3d-app/f3d/issues/1149
set_target_properties(pyf3d PROPERTIES
CXX_STANDARD 14