Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Mar 24, 2024
1 parent 2505218 commit 9339ebc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ 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()
if (NOT DEFINED Python3_FIND_FRAMEWORK)
set(Python_FIND_FRAMEWORK "LAST")
cmake_policy(SET CMP0094 NEW)
set(Python3_FIND_REGISTRY "LAST")
set(Python3_FIND_FRAMEWORK "LAST")
set(Python3_FIND_VIRTUALENV "FIRST")
endif()

add_definitions(-DUSE_PYTHON)
Expand Down

0 comments on commit 9339ebc

Please sign in to comment.