From 301bf81ba578db42d0d50001cda17d79f4c8185b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 26 Feb 2022 15:55:39 -0500 Subject: [PATCH] Ensure HSPlasma gets the correct Python exe. --- CMakeLists.txt | 2 +- cmake/Dependencies.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ed6399..c06f1f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,7 @@ endif() # Gotta do this because libHSPlasma is still using the old broke-ass pre-3.12 find modules. set(Python3_FIND_STRATEGY VERSION) -find_package(Python3 ${Blender_PYTHON_VERSION} EXACT COMPONENTS Development REQUIRED) +find_package(Python3 ${Blender_PYTHON_VERSION} EXACT COMPONENTS Development Interpreter REQUIRED) include(Dependencies) if(korman_INSTALL_PACKAGE) diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index f33cbd0..fb2e3f4 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -217,6 +217,7 @@ if(korman_BUILD_HSPLASMA) -DENABLE_PHYSX:BOOL=OFF -DENABLE_PYTHON:BOOL=ON -DENABLE_TOOLS:BOOL=OFF + -DPYTHON_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE} -DPYTHON_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIRS} -DPYTHON_LIBRARY:FILEPATH=${Python3_LIBRARIES} )