Skip to content
Snippets Groups Projects
Commit 64f1e7a0 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

chore : python exec debug

parent 9c5c9579
No related branches found
No related tags found
No related merge requests found
......@@ -87,9 +87,11 @@ if (PYBIND)
# Handles Python + pybind11 headers dependencies
target_link_libraries(${module_name}
PRIVATE
Python::Python
PUBLIC
pybind11::pybind11
)
)
endif()
target_link_libraries(${module_name} PUBLIC Threads::Threads fmt::fmt)
......
......@@ -4,7 +4,6 @@ import os
import shutil
import pathlib
import subprocess
import multiprocessing
from math import ceil
......@@ -46,7 +45,8 @@ class CMakeBuild(build_ext):
# Impose to use the executable of the python
# used to launch setup.py to setup PythonInterp
param_py = "-DPYTHON_EXECUTABLE=" + sys.executable
python_executable = sys.executable
print(f"python executable {python_executable}")
compile_type = "Debug"
install_path = (
......@@ -59,7 +59,7 @@ class CMakeBuild(build_ext):
[
"cmake",
str(cwd),
param_py,
"-DPYTHON_EXECUTABLE="+python_executable,
"-DTEST=OFF",
f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
f"-DCMAKE_BUILD_TYPE={compile_type}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment