Browse Source

Ensure HSPlasma gets the correct Python exe.

pull/324/head
Adam Johnson 3 years ago
parent
commit
301bf81ba5
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      CMakeLists.txt
  2. 1
      cmake/Dependencies.cmake

2
CMakeLists.txt

@ -49,7 +49,7 @@ endif()
# Gotta do this because libHSPlasma is still using the old broke-ass pre-3.12 find modules. # Gotta do this because libHSPlasma is still using the old broke-ass pre-3.12 find modules.
set(Python3_FIND_STRATEGY VERSION) 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) include(Dependencies)
if(korman_INSTALL_PACKAGE) if(korman_INSTALL_PACKAGE)

1
cmake/Dependencies.cmake

@ -217,6 +217,7 @@ if(korman_BUILD_HSPLASMA)
-DENABLE_PHYSX:BOOL=OFF -DENABLE_PHYSX:BOOL=OFF
-DENABLE_PYTHON:BOOL=ON -DENABLE_PYTHON:BOOL=ON
-DENABLE_TOOLS:BOOL=OFF -DENABLE_TOOLS:BOOL=OFF
-DPYTHON_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE}
-DPYTHON_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIRS} -DPYTHON_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIRS}
-DPYTHON_LIBRARY:FILEPATH=${Python3_LIBRARIES} -DPYTHON_LIBRARY:FILEPATH=${Python3_LIBRARIES}
) )

Loading…
Cancel
Save