Skip to content

Commit

Permalink
Refactor CMakeLists.txt to add pybind11 as a subdirectory and remove …
Browse files Browse the repository at this point in the history
…redundant Python3 detection setting
  • Loading branch information
TLCFEM committed Feb 3, 2025
1 parent d653ddd commit 875c84d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ add_executable(vpmr src/VPMR.cpp)

find_package(Python3 COMPONENTS Development Interpreter)
if (Python3_FOUND)
set(_pybind11_findpython_default OFF)
add_subdirectory(pybind11)
message(STATUS "Python3: ${Python3_VERSION}")
include_directories(${Python3_INCLUDE_DIRS})
add_subdirectory(pybind11)

pybind11_add_module(_pyvpmr src/VPMR.cpp)
target_compile_definitions(_pyvpmr PRIVATE PYVPMR)
Expand Down

0 comments on commit 875c84d

Please sign in to comment.