File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,17 @@ project(
1717# ----------------------------------------------------------------------
1818# Find Python
1919# ----------------------------------------------------------------------
20- if (NOT DEFINED "Python3_VERSION_MAJOR " OR
21- NOT DEFINED "Python3_VERSION_MINOR " )
22- find_package ("Python3" QUIET COMPONENTS Development.Module)
20+ if (NOT DEFINED "Python_VERSION_MAJOR " OR
21+ NOT DEFINED "Python_VERSION_MINOR " )
22+ find_package (Python 3.8 REQUIRED COMPONENTS Development.Module)
2323endif ()
2424
2525
2626# ----------------------------------------------------------------------
2727# Setup Python installation path
2828# ----------------------------------------------------------------------
29- if (Python3_VERSION_MAJOR AND Python3_VERSION_MINOR )
30- set (_python_version_suffix "${Python3_VERSION_MAJOR } .${Python3_VERSION_MINOR } " )
29+ if (Python_VERSION_MAJOR AND Python_VERSION_MINOR )
30+ set (_python_version_suffix "${Python_VERSION_MAJOR } .${Python_VERSION_MINOR } " )
3131else ()
3232 message (WARNING "The version of Python is unknown; not using a versioned directory for Python modules." )
3333 set (_python_version_suffix)
You can’t perform that action at this time.
0 commit comments