16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00

Update CMakeLists.txt

This commit is contained in:
2026-06-18 19:40:48 +02:00
parent 16c94f8e19
commit a79c3cfc69

View File

@@ -473,7 +473,8 @@ endif()
target_link_libraries(${PROJECT_NAME} glfw)
if(WITH_PYTHON)
find_package(Python3 3.14 REQUIRED COMPONENTS Development)
find_package(Python3 3.14 REQUIRED COMPONENTS Interpreter Development)
get_filename_component(Python3_ROOT_DIR "${Python3_EXECUTABLE}" DIRECTORY)
target_include_directories(${PROJECT_NAME} PRIVATE ${Python3_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Python3_LIBRARIES})