Skip to content

Commit

Permalink
fixed setup for standalone install
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Aug 10, 2023
1 parent 460e960 commit 4620427
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,15 @@ link_directories(${CMAKE_BINARY_DIR}/lib)
link_directories(${CMAKE_BINARY_DIR})
set(DEPENDENCY_LIB stdc++fs -lhwloc)
if (BUILD_PYTHON_BINDINGS)
if (DLIO_PYTHON_SITE)
set(PYTHON_SITE_PACKAGES ${DLIO_PYTHON_SITE})
else()
if (USER_INSTALL)
execute_process (COMMAND python3 -c "import site; print(site.USER_SITE)" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
else()
execute_process (COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
endif()
message("-- " "[Python] ${PYTHON_SITE_PACKAGES} found for installing python binding")
endif()

Expand Down

0 comments on commit 4620427

Please sign in to comment.