Only fetch pybind11 when target not available (#25)
This commit is contained in:
committed by
GitHub
parent
77c55d6824
commit
a5ba99ff5f
@@ -1,8 +1,10 @@
|
|||||||
FetchContent_Declare(
|
if(NOT TARGET pybind11)
|
||||||
pybind11
|
FetchContent_Declare(
|
||||||
GIT_REPOSITORY https://github.com/pybind/pybind11.git
|
pybind11
|
||||||
GIT_TAG v3.0.0)
|
GIT_REPOSITORY https://github.com/pybind/pybind11.git
|
||||||
FetchContent_MakeAvailable(pybind11)
|
GIT_TAG v3.0.0)
|
||||||
|
FetchContent_MakeAvailable(pybind11)
|
||||||
|
endif()
|
||||||
|
|
||||||
pybind11_add_module(pytrigdx bindings.cpp)
|
pybind11_add_module(pytrigdx bindings.cpp)
|
||||||
target_link_libraries(pytrigdx PRIVATE trigdx)
|
target_link_libraries(pytrigdx PRIVATE trigdx)
|
||||||
|
|||||||
Reference in New Issue
Block a user