Skip to content

Commit

Permalink
build: adjust variables for FindPython usage
Browse files Browse the repository at this point in the history
  • Loading branch information
davvid committed Mar 2, 2024
1 parent c044c3b commit 1f86e5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def build_extension(self, ext):
PARTIO_EXT = CMakeExtension(
name="partio",
cmake_configure_options=[
"-DPYTHON_INCLUDE_DIR={} ".format(get_python_inc()),
"-DPYTHON_LIBRARY={} ".format(get_config_var("LIBDIR")),
"-DPYTHON_EXECUTABLE={} ".format(sys.executable),
"-DPython_INCLUDE_DIR={} ".format(get_python_inc()),
"-DPython_LIBRARY={} ".format(get_config_var("LIBDIR")),
"-DPython_EXECUTABLE={} ".format(sys.executable),
],
)

Expand Down
4 changes: 2 additions & 2 deletions src/py/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ get_property(swig_files TARGET partio_mod PROPERTY SWIG_SUPPORT_FILES)
target_include_directories(
partio_mod
PRIVATE
${PYTHON_INCLUDE_DIRS}
${Python_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/src/lib
)
target_link_libraries(partio_mod PRIVATE ${PYTHON_LIBRARIES} partio)
target_link_libraries(partio_mod PRIVATE ${Python_LIBRARIES} partio)

set(PYTHON_DEST "${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages" )

Expand Down

0 comments on commit 1f86e5f

Please sign in to comment.