Browse Source

Fix compatibility of FindPythonLibsNew.cmake and FindPythonLibs.cmake

Make sure `LibsNew` runs correctly if called after the old `Libs`.
pull/962/head
Dean Moldovan 8 years ago
parent
commit
2e37fe09e1
  1. 3
      tools/FindPythonLibsNew.cmake

3
tools/FindPythonLibsNew.cmake

@ -50,7 +50,8 @@ @@ -50,7 +50,8 @@
# 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()
endif()

Loading…
Cancel
Save