Changed build to require python3 instead of python2

This commit is contained in:
Leland Lucius 2020-05-27 16:01:04 -05:00
parent bf5cd11a43
commit 5f5a477dbf
1 changed files with 4 additions and 4 deletions

View File

@ -432,11 +432,11 @@ else()
endif()
# Python is used for the manual and (possibly) message catalogs
find_package( Python2 )
if( Python2_FOUND )
set( PYTHON "${Python2_EXECUTABLE}" )
find_package( Python3 )
if( Python3_FOUND )
set( PYTHON "${Python3_EXECUTABLE}" )
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
nuget_package( pkgdir "python2" "2.7.17" )
nuget_package( pkgdir "python3" "3.7.7" )
file( TO_NATIVE_PATH "${pkgdir}/tools/python.exe" PYTHON )
endif()