File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,17 @@ endif(TPIE_FRACTIONDB_DIR_INL)
27
27
check_include_files("unistd.h" TPIE_HAVE_UNISTD_H)
28
28
check_include_files("sys/unistd.h" TPIE_HAVE_SYS_UNISTD_H)
29
29
30
- # Ryan Pavlik's Git revision description helper
31
- # http://stackoverflow.com/a/4318642
32
- include (GetGitRevisionDescription)
33
- get_git_head_revision(GIT_REFSPEC GIT_COMMIT)
30
+
31
+ option (TPIE_USE_GIT_COMMIT "Use git commit" ON )
32
+ if (TPIE_USE_GIT_COMMIT)
33
+ # Ryan Pavlik's Git revision description helper
34
+ # http://stackoverflow.com/a/4318642
35
+ include (GetGitRevisionDescription)
36
+ get_git_head_revision(GIT_REFSPEC GIT_COMMIT)
37
+ else (TPIE_USE_GIT_COMMIT)
38
+ set (GIT_REFSPEC "no_git_ref" )
39
+ set (GIT_COMMIT "no_git_commit" )
40
+ endif ()
34
41
35
42
## Snappy
36
43
option (TPIE_USE_SNAPPY "Use Snappy, a fast compressor/decompressor" ON )
You can’t perform that action at this time.
0 commit comments