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

fix: missing link

parent fe85b297
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!116feat/release_pip
Pipeline #45108 waiting for manual action
......@@ -24,7 +24,6 @@ option(ENABLE_ASAN "Enable ASan (AddressSanitizer) for runtime analysis of memor
##############################################
# Import utils CMakeLists
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
include(PybindModuleCreation)
if(CMAKE_COMPILER_IS_GNUCXX AND COVERAGE)
Include(CodeCoverage)
......@@ -79,6 +78,7 @@ endif()
# PYTHON BINDING
if (PYBIND)
include(PybindModuleCreation)
find_package(Python REQUIRED)
if (${Python_VERSION_MAJOR} LESS 3)
MESSAGE(FATAL_ERROR "Unsupported Python version. Python 3.0.0+ is required")
......@@ -87,6 +87,8 @@ if (PYBIND)
# Handles Python + pybind11 headers dependencies
target_link_libraries(${module_name}
PRIVATE
Python::Python
PUBLIC
pybind11::pybind11
)
......
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