You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by pa...@apache.org on 2016/05/04 00:50:09 UTC
drill git commit: DRILL-4652: Drill native client - fix compile issue
when the latest git commit description has a period or quotation mark in it
Repository: drill
Updated Branches:
refs/heads/master 2d9f9abb4 -> f07f32856
DRILL-4652: Drill native client - fix compile issue when the latest git commit description has a period or quotation mark in it
This closes #494
Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/f07f3285
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/f07f3285
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/f07f3285
Branch: refs/heads/master
Commit: f07f328562f4f30d691650f0a17d29cae227d138
Parents: 2d9f9ab
Author: Patrick Wong <pw...@maprtech.com>
Authored: Tue May 3 15:19:26 2016 -0700
Committer: Parth Chandra <pa...@apache.org>
Committed: Tue May 3 15:45:26 2016 -0700
----------------------------------------------------------------------
contrib/native/client/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/drill/blob/f07f3285/contrib/native/client/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/contrib/native/client/CMakeLists.txt b/contrib/native/client/CMakeLists.txt
index b22af42..b53cb0a 100644
--- a/contrib/native/client/CMakeLists.txt
+++ b/contrib/native/client/CMakeLists.txt
@@ -33,6 +33,9 @@ execute_process(
OUTPUT_VARIABLE GIT_COMMIT_PROP
OUTPUT_STRIP_TRAILING_WHITESPACE
)
+STRING(REPLACE . " " GIT_COMMIT_PROP "${GIT_COMMIT_PROP}")
+STRING(REPLACE \" "" GIT_COMMIT_PROP "${GIT_COMMIT_PROP}")
+set(GIT_COMMIT_PROP "\"${GIT_COMMIT_PROP}\"")
add_definitions("-DGIT_COMMIT_PROP=${GIT_COMMIT_PROP}")