You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/kde-apps/kig/files/kig-4.12.0-boostpython.patch

17 lines
1012 B

diff --git a/cmake/modules/FindBoostPython.cmake b/cmake/modules/FindBoostPython.cmake
index 2ccc161..02d9bf6 100644
--- a/cmake/modules/FindBoostPython.cmake
+++ b/cmake/modules/FindBoostPython.cmake
@@ -74,10 +74,10 @@ if(HAVE_BOOST_SHARED_PTR_HPP AND Boost_PYTHON_FOUND)
# Second try: try pkg-config way
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
- set(PYTHON_VERSIONS "python;python2.7;python2.6;python2.5;python2.4;python2.3;python2.2")
+ execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE PYTHON_VERSIONS)
foreach(_pyver ${PYTHON_VERSIONS})
if(NOT BoostPython_INCLUDES OR NOT BoostPython_LIBS)
- pkg_check_modules(${_pyver} QUIET ${_pyver})
+ pkg_check_modules(_python python-${_pyver})
if(${_pyver}_FOUND)
cmake_push_check_state()
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${${_pyver}_INCLUDE_DIRS})