mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Ensure PythonLibsNew_FOUND is set in FindPythonLibsNew module (#1373)
Since the module is named FindPythonLibsNew, PythonLibsNew_FOUND should be set appropriately.
This commit is contained in:
parent
b3f0b4de66
commit
a0b8f70df4
@ -64,6 +64,7 @@ endif()
|
|||||||
|
|
||||||
if(NOT PYTHONINTERP_FOUND)
|
if(NOT PYTHONINTERP_FOUND)
|
||||||
set(PYTHONLIBS_FOUND FALSE)
|
set(PYTHONLIBS_FOUND FALSE)
|
||||||
|
set(PythonLibsNew_FOUND FALSE)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -96,6 +97,7 @@ if(NOT _PYTHON_SUCCESS MATCHES 0)
|
|||||||
"Python config failure:\n${_PYTHON_ERROR_VALUE}")
|
"Python config failure:\n${_PYTHON_ERROR_VALUE}")
|
||||||
endif()
|
endif()
|
||||||
set(PYTHONLIBS_FOUND FALSE)
|
set(PYTHONLIBS_FOUND FALSE)
|
||||||
|
set(PythonLibsNew_FOUND FALSE)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -127,6 +129,7 @@ if(CMAKE_SIZEOF_VOID_P AND (NOT "${PYTHON_SIZEOF_VOID_P}" STREQUAL "${CMAKE_SIZE
|
|||||||
"chosen compiler is ${_CMAKE_BITS}-bit")
|
"chosen compiler is ${_CMAKE_BITS}-bit")
|
||||||
endif()
|
endif()
|
||||||
set(PYTHONLIBS_FOUND FALSE)
|
set(PYTHONLIBS_FOUND FALSE)
|
||||||
|
set(PythonLibsNew_FOUND FALSE)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -196,3 +199,4 @@ find_package_message(PYTHON
|
|||||||
"${PYTHON_EXECUTABLE}${PYTHON_VERSION}")
|
"${PYTHON_EXECUTABLE}${PYTHON_VERSION}")
|
||||||
|
|
||||||
set(PYTHONLIBS_FOUND TRUE)
|
set(PYTHONLIBS_FOUND TRUE)
|
||||||
|
set(PythonLibsNew_FOUND TRUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user