native logging for python
This commit is contained in:
parent
661a50e62d
commit
059221a7de
5 changed files with 98 additions and 51 deletions
|
|
@ -124,3 +124,12 @@ if(KOMPUTE_OPT_INSTALL)
|
|||
DESTINATION lib/cmake/kompute)
|
||||
endif()
|
||||
|
||||
if(KOMPUTE_OPT_BUILD_PYTHON)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/python/pybind11/include)
|
||||
if (WIN32)
|
||||
execute_process(COMMAND CMD /c python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" OUTPUT_VARIABLE PYTHON_INCLUDE_DIR)
|
||||
else()
|
||||
execute_process(COMMAND python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())" OUTPUT_VARIABLE PYTHON_INCLUDE_DIR)
|
||||
endif()
|
||||
include_directories(${PYTHON_INCLUDE_DIR})
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue