diff --git a/CMakeLists.txt b/CMakeLists.txt index 98e77af74aa5..3836abadc867 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,7 +178,7 @@ if(TRITON_BUILD_PYTHON_MODULE) include_directories(${PYTHON_SRC_PATH}) # Python Interpreter is used to run lit tests - find_package(Python3 REQUIRED COMPONENTS Development Interpreter) + find_package(Python3 REQUIRED COMPONENTS Development.Module Interpreter) find_package(pybind11 CONFIG REQUIRED HINTS "${Python3_SITELIB}") if (DEFINED TRITON_PLUGIN_DIRS) diff --git a/third_party/proton/CMakeLists.txt b/third_party/proton/CMakeLists.txt index ba967c5695a4..e0fafb43a929 100644 --- a/third_party/proton/CMakeLists.txt +++ b/third_party/proton/CMakeLists.txt @@ -19,7 +19,7 @@ include_directories(${JSON_INCLUDE_DIR}) include_directories(${PROTON_SRC_DIR}/include) include_directories(${PROTON_EXTERN_DIR}) -find_package(Python3 REQUIRED Interpreter Development) +find_package(Python3 REQUIRED Interpreter Development.Module) find_package(pybind11 CONFIG REQUIRED HINTS "${Python3_SITELIB}") # Check if the platform is MacOS