mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Allow passing custom git revision to CMake.
This commit is contained in:
parent
87285cfcaa
commit
c3cf13fc64
@ -181,8 +181,12 @@ endif()
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE TracyServer TracyImGui)
|
||||
|
||||
if(NOT DEFINED GIT_REV)
|
||||
set(GIT_REV "HEAD")
|
||||
endif()
|
||||
|
||||
add_custom_target(git-ref
|
||||
COMMAND python3 ${CMAKE_CURRENT_LIST_DIR}/../extra/git-ref.py
|
||||
COMMAND python3 ${CMAKE_CURRENT_LIST_DIR}/../extra/git-ref.py ${GIT_REV}
|
||||
BYPRODUCTS GitRef.hpp
|
||||
)
|
||||
add_dependencies(${PROJECT_NAME} git-ref)
|
||||
|
Loading…
Reference in New Issue
Block a user