Skip to content

Commit

Permalink
use python extensions to build pip packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk committed Feb 15, 2024
1 parent 8c911b1 commit df1c515
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ if (PYCLINGOLPX_ENABLE)
if (PYCLINGOLPX_ENABLE STREQUAL "require" OR PYCLINGOLPX_ENABLE STREQUAL "pip")
set(_args ${_args} REQUIRED)
endif()
find_package(PythonInterp ${_args})
find_package(PythonLibs ${_args})
if (PYCLINGOLPX_ENABLE STREQUAL "pip")
find_package(PythonExtensions ${_args})
else()
find_package(PythonInterp ${_args})
find_package(PythonLibs ${_args})
endif()
set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}")
set(Python_VERSION_MAJOR "${PYTHON_VERSION_MAJOR}")
if (PYTHONLIBS_FOUND)
add_library(Python::Python INTERFACE IMPORTED)
add_library(Python::Module INTERFACE IMPORTED)
Expand Down

0 comments on commit df1c515

Please sign in to comment.