diff --git a/compiler/one-cmds/CMakeLists.txt b/compiler/one-cmds/CMakeLists.txt index e207d2326e7..0d4f98b4db1 100644 --- a/compiler/one-cmds/CMakeLists.txt +++ b/compiler/one-cmds/CMakeLists.txt @@ -1,12 +1,12 @@ -# NOTE find_package try to use at least python3.8 as follows depending on platform version -# Ubuntu18.04; explictly installed python3.8 (default is python3.6) -# Ubuntu20.04; default python3.8 +# NOTE find_package will try to use at least python3.10 as follows depending on platform version +# Ubuntu20.04; explictly installed python3.10 (default is python3.8) # Ubuntu22.04; default python3.10 # Ubuntu24.04; explicitly installed python3.8 (default is python3.12) # refer https://github.com/Samsung/ONE/issues/9962 -find_package(Python 3.8 EXACT COMPONENTS Interpreter QUIET) +# refer https://github.com/Samsung/ONE/issues/15226 +find_package(Python 3.10 EXACT COMPONENTS Interpreter QUIET) if(NOT Python_FOUND) - find_package(Python 3.8 COMPONENTS Interpreter QUIET) + find_package(Python 3.10 COMPONENTS Interpreter QUIET) endif() if(NOT Python_Interpreter_FOUND) @@ -14,11 +14,9 @@ if(NOT Python_Interpreter_FOUND) return() endif() -# NOTE assume only use 3.8.x or 3.10.x or 3.12.x +# NOTE assume only use 3.10.x or 3.12.x # NOTE PYTHON_VERSION_MINOR is not used but added for consistancy with common-artifacts and dalgona -if((Python_VERSION VERSION_GREATER_EQUAL 3.8) AND (Python_VERSION VERSION_LESS 3.9)) - set(PYTHON_VERSION_MINOR 8) -elseif((Python_VERSION VERSION_GREATER_EQUAL 3.10) AND (Python_VERSION VERSION_LESS 3.11)) +if((Python_VERSION VERSION_GREATER_EQUAL 3.10) AND (Python_VERSION VERSION_LESS 3.11)) set(PYTHON_VERSION_MINOR 10) elseif((Python_VERSION VERSION_GREATER_EQUAL 3.12) AND (Python_VERSION VERSION_LESS 3.13)) set(PYTHON_VERSION_MINOR 12)