Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:raulgs:gtk2_win
mingw32-python3
0007-Install-cmake-support-to-be-able-to-use-fi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0007-Install-cmake-support-to-be-able-to-use-find_package.patch of Package mingw32-python3
From 3b9f937113d578c15bf7264644285f30648ee5ea Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@freenet.de> Date: Tue, 30 Aug 2022 16:41:22 +0200 Subject: [PATCH 07/12] Install cmake support to be able to use find_package(Python3 CONFIG) --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e88468..856d36f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -806,7 +806,7 @@ set(INCLUDE_DIR_CONFIG ${INCLUDE_BUILD_DIR}) set(PYTHON_CONFIG_CODE "####### Expanded from \@PYTHON_CONFIG_CODE\@ #######\n") set(PYTHON_CONFIG_CODE "${PYTHON_CONFIG_CODE}list(APPEND PYTHON_INCLUDE_DIR \"${PYCONFIG_BUILD_DIR}\")\n") set(PYTHON_CONFIG_CODE "${PYTHON_CONFIG_CODE}##################################################") -set(python_config ${CONFIG_BUILD_DIR}/PythonConfig.cmake) +set(python_config ${CONFIG_BUILD_DIR}/Python${PY_VERSION_MAJOR}Config.cmake) configure_package_config_file( cmake/PythonConfig.cmake.in ${python_config} @@ -819,7 +819,7 @@ configure_package_config_file( set(CONFIG_DIR_CONFIG ${CONFIG_INSTALL_DIR}) set(INCLUDE_DIR_CONFIG ${INCLUDE_INSTALL_DIR}) set(PYTHON_CONFIG_CODE "") -set(python_install_config ${PROJECT_BINARY_DIR}/CMakeFiles/PythonConfig.cmake) +set(python_install_config ${PROJECT_BINARY_DIR}/CMakeFiles/Python${PY_VERSION_MAJOR}Config.cmake) configure_package_config_file( cmake/PythonConfig.cmake.in ${python_install_config} @@ -830,9 +830,9 @@ configure_package_config_file( # Configure 'PythonTargets.cmake' and 'PythonConfigVersion.cmake get_property(PYTHON_TARGETS GLOBAL PROPERTY PYTHON_TARGETS) -export(TARGETS ${PYTHON_TARGETS} APPEND FILE ${CONFIG_BUILD_DIR}/PythonTargets.cmake) +export(TARGETS ${PYTHON_TARGETS} APPEND FILE ${CONFIG_BUILD_DIR}/Python${PY_VERSION_MAJOR}Targets.cmake) -set(python_config_version ${CONFIG_BUILD_DIR}/PythonConfigVersion.cmake) +set(python_config_version ${CONFIG_BUILD_DIR}/Python${PY_VERSION_MAJOR}ConfigVersion.cmake) write_basic_package_version_file( ${python_config_version} VERSION ${PY_VERSION} @@ -842,7 +842,7 @@ write_basic_package_version_file( if(INSTALL_DEVELOPMENT) # Install 'PythonTargets.cmake', 'PythonConfig.cmake' and 'PythonConfigVersion.cmake install(EXPORT PythonTargets - FILE PythonTargets.cmake + FILE Python${PY_VERSION_MAJOR}Targets.cmake DESTINATION ${CONFIG_INSTALL_DIR} COMPONENT Development) install( --- a/cmake/PythonConfig.cmake.in 2023-05-22 19:02:00.406287801 +0000 +++ b/cmake/PythonConfig.cmake.in 2023-05-22 19:02:40.580031825 +0000 @@ -14,7 +14,7 @@ set_and_check(PYTHON_CONFIG_DIR "@PACKAGE_CONFIG_DIR_CONFIG@") set_and_check(PYTHON_INCLUDE_DIR "@PACKAGE_INCLUDE_DIR_CONFIG@") -set_and_check(PYTHON_TARGETS "@PACKAGE_CONFIG_DIR_CONFIG@/PythonTargets.cmake") +set_and_check(PYTHON_TARGETS "@PACKAGE_CONFIG_DIR_CONFIG@/Python@PY_VERSION_MAJOR@Targets.cmake") @PYTHON_CONFIG_CODE@ -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor