mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-01 12:40:57 +08:00
Fix compatibility of FindPythonLibsNew.cmake and FindPythonLibs.cmake
Make sure `LibsNew` runs correctly if called after the old `Libs`.
This commit is contained in:
parent
cb3d4065fe
commit
2e37fe09e1
@ -50,7 +50,8 @@
|
|||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
|
||||||
if(PYTHONLIBS_FOUND)
|
# Checking for the extension makes sure that `LibsNew` was found and not just `Libs`.
|
||||||
|
if(PYTHONLIBS_FOUND AND PYTHON_MODULE_EXTENSION)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user