Skip to content

Commit

Permalink
try to fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
glyg committed Feb 14, 2024
1 parent 580fd5a commit 215c56b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ cmake_minimum_required(VERSION 3.15...3.26)
project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX)
message(STATUS '${SKBUILD_PROJECT_NAME}')
set(CMAKE_VERBOSE_MAKEFILE ON)


if(SKBUILD)
set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}")
set(Python_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}")
set(Python_LIBRARY "${PYTHON_LIBRARY}")
endif()

find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)

find_package(Python COMPONENTS Interpreter Development.Embed REQUIRED)
Expand Down

0 comments on commit 215c56b

Please sign in to comment.