There was an error while loading. Please reload this page.
1 parent b6a1dcf commit ba57833Copy full SHA for ba57833
1 file changed
cmake/MacroHelper.cmake
@@ -256,9 +256,9 @@ endfunction()
256
function(add_cpp_git_information target scope)
257
find_program(GIT git)
258
if(EXISTS "${PROJECT_SOURCE_DIR}/.git" AND GIT)
259
- # Shallow clones: tags may not be ancestors of HEAD, so describe fails and
260
- # GIT_DESCRIBE would stay empty (neuron.__version__ / nrnversion(5)). Fall
261
- # back to PROJECT_VERSION so release dry-run and ship wheels match.
+ # Shallow clones: tags may not be ancestors of HEAD, so describe fails and GIT_DESCRIBE would
+ # stay empty (neuron.__version__ / nrnversion(5)). Fall back to PROJECT_VERSION so release
+ # dry-run and ship wheels match.
262
execute_process(
263
COMMAND "${GIT}" -C "${PROJECT_SOURCE_DIR}" describe
264
OUTPUT_VARIABLE GIT_DESCRIBE
0 commit comments