Skip to content

Commit

Permalink
Remove deprecated Python install target variable
Browse files Browse the repository at this point in the history
  • Loading branch information
boxanm committed Oct 31, 2023
1 parent d07e096 commit 2d7b88c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
if("${PYTHON_INSTALL_TARGET}" STREQUAL "")
set(PYTHON_INSTALL_TARGET ${CMAKE_CURRENT_SOURCE_DIR}/pypointmatcher)
endif()

message(STATUS "The Python module will be install at this location : ${PYTHON_INSTALL_TARGET}")

set(PYBIND11_SOURCES
#pointmatcher module
pointmatcher/data_points.cpp
Expand Down Expand Up @@ -110,8 +104,9 @@ if(pybind11_FOUND)
pointmatcher)

add_dependencies(pypointmatcher_native pointmatcher)
message(STATUS "The Python module will be install at this location : ${CMAKE_CURRENT_SOURCE_DIR}/pypointmatcher")

install(TARGETS pypointmatcher_native LIBRARY DESTINATION ${PYTHON_INSTALL_TARGET})
install(TARGETS pypointmatcher_native LIBRARY DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/pypointmatcher)
else()
message(FATAL_ERROR "pybind11 is required! Please follow the \"Compiling \
libpointmatcher's with Python\" instructions from the official libpointmatcher's documentation.")
Expand Down

0 comments on commit 2d7b88c

Please sign in to comment.