Skip to content

Commit f48d06f

Browse files
[cmake] update variable names Python3_VERSION* -> Python_VERSION*
1 parent fc96d58 commit f48d06f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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)
2323
endif ()
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}")
3131
else ()
3232
message(WARNING "The version of Python is unknown; not using a versioned directory for Python modules.")
3333
set(_python_version_suffix)

0 commit comments

Comments
 (0)