mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
minor cmake change as per #306
This commit is contained in:
parent
3da5edec1f
commit
2160860c0a
@ -57,7 +57,7 @@ function(pybind11_add_module target_name)
|
|||||||
add_library(${target_name} MODULE ${ARGN})
|
add_library(${target_name} MODULE ${ARGN})
|
||||||
target_include_directories(${target_name}
|
target_include_directories(${target_name}
|
||||||
PRIVATE ${PYBIND11_INCLUDE_DIR}
|
PRIVATE ${PYBIND11_INCLUDE_DIR}
|
||||||
PUBLIC ${PYTHON_INCLUDE_DIRS})
|
PRIVATE ${PYTHON_INCLUDE_DIRS})
|
||||||
|
|
||||||
# The prefix and extension are provided by FindPythonLibsNew.cmake
|
# The prefix and extension are provided by FindPythonLibsNew.cmake
|
||||||
set_target_properties(${target_name} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}")
|
set_target_properties(${target_name} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}")
|
||||||
|
Loading…
Reference in New Issue
Block a user