diff --git a/CITATION.cff b/CITATION.cff index cc509768..c6497415 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -4,7 +4,7 @@ title: MOPAC type: software version: 22.1.0 doi: 10.5281/zenodo.6511958 -date-released: 2023-09-30 +date-released: 2023-09-25 authors: - family-names: Moussa given-names: "Jonathan E." diff --git a/CMakeLists.txt b/CMakeLists.txt index 79095bb3..0d79af91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -171,7 +171,9 @@ endif() # Pass version & commit information to MOPAC's Fortran source target_compile_definitions(mopac-core PRIVATE MOPAC_VERSION_FULL="${PROJECT_VERSION}") -execute_process(COMMAND git rev-parse HEAD OUTPUT_VARIABLE GIT_HASH) +if(NOT GIT_HASH) + execute_process(COMMAND git rev-parse HEAD OUTPUT_VARIABLE GIT_HASH) +endif() if(GIT_HASH) string(STRIP ${GIT_HASH} GIT_HASH) target_compile_definitions(mopac-core PRIVATE MOPAC_GIT_HASH="${GIT_HASH}")