Skip to content
Snippets Groups Projects
Commit 1b43f8b1 authored by Administrator's avatar Administrator
Browse files

Fix build system when using the release tar file

The clang_format check needs the .git rpository to be present. In the release
tar file the directory is missing which results in a crash when running cmake.
parent 6f6619b0
No related branches found
No related tags found
1 merge request!364Fix build system when using the release tar file
Pipeline #10500 passed
......@@ -414,7 +414,7 @@ add_custom_target(cleantest
)
find_package2(PRIVATE ClangFormat)
if(ClangFormat_FOUND)
if(ClangFormat_FOUND AND EXISTS ${CMAKE_SOURCE_DIR}/.git)
if (FAIRROOT_FORMAT_BASE)
set(BASE_COMMIT ${FAIRROOT_FORMAT_BASE})
else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment