Commit 2e37fe09 by Dean Moldovan

Fix compatibility of FindPythonLibsNew.cmake and FindPythonLibs.cmake

Make sure `LibsNew` runs correctly if called after the old `Libs`.
parent cb3d4065
...@@ -50,7 +50,8 @@ ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment