From c057d0e712e7f25a749568fbd8029701e81dacdb Mon Sep 17 00:00:00 2001 From: rusty1s Date: Sun, 24 Mar 2024 14:41:55 +0100 Subject: [PATCH] update --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4365a6e92..9957a63aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,14 @@ endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pyg_lib/csrc/config.h.in "${CMAKE_CURRENT_SOURCE_DIR}/pyg_lib/csrc/config.h") if (USE_PYTHON) + # Needed for GitHub CI in order to pick up the correct Python version: + if (NOT DEFINED Python_FIND_REGISTRY) + set(Python_FIND_REGISTRY "LAST") + endif() + if (NOT DEFINED Python_FIND_FRAMEWORK) + set(Python_FIND_FRAMEWORK "LAST") + endif() + add_definitions(-DUSE_PYTHON) find_package(Python3 REQUIRED COMPONENTS Development) endif()