diff --git a/profiler/CMakeLists.txt b/profiler/CMakeLists.txt index 97dadaba..f6afbe0d 100644 --- a/profiler/CMakeLists.txt +++ b/profiler/CMakeLists.txt @@ -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)