Skip to content

Commit

Permalink
CMake: replace GetGitCommitHash with .gitattributes and $Id$.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Feb 10, 2019
1 parent e383b7f commit c962357
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Expand Up @@ -8,3 +8,5 @@
*.lib binary
*.png binary
*.slvs binary

/CMakeLists.txt ident
9 changes: 1 addition & 8 deletions CMakeLists.txt
Expand Up @@ -22,17 +22,10 @@ set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX

# project

# NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds
# can come from a variety of sources. If you are mirroring the sources or otherwise build when
# the .git directory is not present, please comment the following line:
include(GetGitCommitHash)
# and instead uncomment the following, adding the complete git hash of the checkout you are using:
# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000)

project(solvespace)
set(solvespace_VERSION_MAJOR 3)
set(solvespace_VERSION_MINOR 0)
string(SUBSTRING "${GIT_COMMIT_HASH}" 0 8 solvespace_GIT_HASH)
string(SUBSTRING "$Id$" 5 8 solvespace_GIT_HASH)

set(ENABLE_GUI ON CACHE BOOL
"Whether the graphical interface is enabled")
Expand Down
35 changes: 0 additions & 35 deletions cmake/GetGitCommitHash.cmake

This file was deleted.

0 comments on commit c962357

Please sign in to comment.