Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,20 @@ endif()
option(ACTSVG_BUILD_PYTHON_BINDINGS "Build the python bindings of ACTSVG" OFF)
if(ACTSVG_BUILD_PYTHON_BINDINGS)
find_package(Python 3.8 REQUIRED COMPONENTS Interpreter Development)
option(
ACTSVG_USE_SYSTEM_PYBIND11
"Pick up an existing installation of pybind11"
)
if(ACTSVG_USE_SYSTEM_PYBIND11)
find_package(pybind11 CONFIG REQUIRED)
else()
add_subdirectory(extern/pybind11)
option(ACTSVG_SETUP_PYBIND11 "Set up the pybind11 target(s) explicitly")
if(ACTSVG_SETUP_PYBIND11)
option(
ACTSVG_USE_SYSTEM_PYBIND11
"Pick up an existing installation of pybind11"
)
if(ACTSVG_USE_SYSTEM_PYBIND11)
find_package(pybind11 CONFIG REQUIRED)
else()
add_subdirectory(extern/pybind11)
endif()
# Add the python sub directory
add_subdirectory(python)
endif()
# Add the python sub directory
add_subdirectory(python)
endif()

# Set up the packaging of the project.
Expand Down