Skip to content

Commit

Permalink
Provide better scmrev defaults without .git
Browse files Browse the repository at this point in the history
Use the default values from CMakeLists.txt (previously used for CPack). We
usually update these when tagging a new major version.
  • Loading branch information
delroth committed May 29, 2016
1 parent 6ef7414 commit bae4f2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -143,6 +143,14 @@ else()
set(DOLPHIN_VERSION_PATCH ${DOLPHIN_WC_REVISION})
endif()

# If Dolphin is not built from a Git repository, default the version info to
# reasonable values.
if(NOT DOLPHIN_WC_REVISION)
set(DOLPHIN_WC_DESCRIBE "${DOLPHIN_VERSION_MAJOR}.${DOLPHIN_VERSION_MINOR}")
set(DOLPHIN_WC_REVISION "${DOLPHIN_WC_DESCRIBE} (no further info)")
set(DOLPHIN_WC_BRANCH "master")
endif()

# Architecture detection and arch specific settings
message(${CMAKE_SYSTEM_PROCESSOR})

Expand Down

0 comments on commit bae4f2c

Please sign in to comment.