fix one lingering ::pybind11 --> ::module target name (#603)

This commit is contained in:
Lori A. Burns 2017-01-13 05:10:22 -05:00 committed by Wenzel Jakob
parent 5b5e3de369
commit 53a338c05a

View File

@ -71,7 +71,7 @@ if(NOT (CMAKE_VERSION VERSION_LESS 3.0))
# Don't include targets if this file is being picked up by another
# project which has already built this as a subproject
#-----------------------------------------------------------------------------
if(NOT TARGET ${PN}::pybind11)
if(NOT TARGET ${PN}::module)
include("${CMAKE_CURRENT_LIST_DIR}/${PN}Targets.cmake")
find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} MODULE REQUIRED)