1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

Merge pull request #1003 from Lectem/cmake-require-python

Let CMake discover python3 and make it required
This commit is contained in:
Bartosz Taudul 2025-03-08 17:31:35 +01:00 committed by GitHub
commit 1530884256
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,8 +189,9 @@ if(NOT DEFINED GIT_REV)
set(GIT_REV "HEAD")
endif()
find_package(Python3 COMPONENTS Interpreter REQUIRED)
add_custom_target(git-ref
COMMAND python3 ${CMAKE_CURRENT_LIST_DIR}/../extra/git-ref.py ${GIT_REV}
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/../extra/git-ref.py ${GIT_REV}
BYPRODUCTS GitRef.hpp
)
add_dependencies(${PROJECT_NAME} git-ref)