From 5ab3a1f6efba148e734a8f076dc44ca8cf8e99b0 Mon Sep 17 00:00:00 2001 From: Alexei Fedotov Date: Thu, 30 Mar 2023 23:45:37 +0200 Subject: [PATCH] Revert PR 266 --- python/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index e20b2b5c30..154cc876e3 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -33,8 +33,6 @@ 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} @@ -42,9 +40,9 @@ add_custom_target(pyhdk ALL ) 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)")