diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2019-11-10 10:40:43 -0500 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-11-12 21:19:47 +0100 |
commit | 76c6f52e8c93e3a9f53f30e2c86908dfb3079bc8 (patch) | |
tree | 4b88cd1df53065cf3397f336b1d227049bef67a0 /cmake | |
parent | 5c8ac69f73821f6b9943ed29b1a2770b203aefd1 (diff) | |
download | weechat-76c6f52e8c93e3a9f53f30e2c86908dfb3079bc8.zip |
build: support python 3.8
In python 3.8, in order to link to -lpython3.8, you need to use the
exported pkg-config interface 'python3-embed' (or 'python3-config --libs
--embed'), see https://bugs.python.org/issue36721 for details.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindPython.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/FindPython.cmake b/cmake/FindPython.cmake index e6023dbc9..7690833c9 100644 --- a/cmake/FindPython.cmake +++ b/cmake/FindPython.cmake @@ -33,5 +33,8 @@ include(FindPkgConfig) if(ENABLE_PYTHON2) pkg_check_modules(PYTHON python2 IMPORTED_TARGET GLOBAL) else() - pkg_check_modules(PYTHON python3 IMPORTED_TARGET GLOBAL) + pkg_check_modules(PYTHON python3-embed IMPORTED_TARGET GLOBAL) + if(NOT PYTHON_FOUND) + pkg_check_modules(PYTHON python3 IMPORTED_TARGET GLOBAL) + endif() endif() |