Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Revert PR 266
Browse files Browse the repository at this point in the history
  • Loading branch information
leshikus committed Mar 30, 2023
1 parent 5c7f06c commit 5ab3a1f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,16 @@ if(ENABLE_FOLLY)
list(APPEND SETUP_FLAGS "-DHAVE_FOLLY")
endif()

set(SETUP_INSTALL_FLAGS "--prefix \${CMAKE_INSTALL_PREFIX}")

add_custom_target(pyhdk ALL
COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} build_ext ${SETUP_FLAGS}
DEPENDS Calcite ${pydeps}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

add_custom_target(pyhdk-install
COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} build_ext ${SETUP_FLAGS} install ${SETUP_INSTALL_FLAGS}
COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} build_ext ${SETUP_FLAGS} install
DEPENDS Calcite ${pydeps}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

install(CODE "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} build_ext ${SETUP_FLAGS} install ${SETUP_INSTALL_FLAGS})")
install(CODE "execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} build_ext ${SETUP_FLAGS} install)")

0 comments on commit 5ab3a1f

Please sign in to comment.