From e5811687533734f3c67364b1037e8f75c86706eb Mon Sep 17 00:00:00 2001 From: rusty1s Date: Sun, 24 Mar 2024 19:16:46 +0100 Subject: [PATCH] update --- CMakeLists.txt | 3 +++ setup.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e9ada91d..f06fc6850 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pyg_lib/csrc/config.h.in "${CMAKE_CUR if (USE_PYTHON) # Needed for GitHub CI in order to pick up the correct Python version: + if (POLICY CMP0094) + cmake_policy(SET CMP0094 NEW) + endif() if (NOT DEFINED Python3_FIND_REGISTRY) set(Python_FIND_REGISTRY "LAST") endif() diff --git a/setup.py b/setup.py index 09876c69c..4ea063ff2 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,6 @@ import os import os.path as osp import subprocess -import sys import warnings from setuptools import Extension, find_packages, setup @@ -59,7 +58,6 @@ def build_extension(self, ext): '-DBUILD_TEST=OFF', '-DBUILD_BENCHMARK=OFF', '-DUSE_PYTHON=ON', - # f'-DPython3_EXECUTABLE={sys.executable}', f'-DWITH_CUDA={"ON" if WITH_CUDA else "OFF"}', f'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}', f'-DCMAKE_BUILD_TYPE={self.build_type}',