42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
$OpenBSD: patch-CMakeLists_txt,v 1.2 2017/09/09 20:03:15 bcallah Exp $
|
|
|
|
Don't try to execute git.
|
|
|
|
Index: CMakeLists.txt
|
|
--- CMakeLists.txt.orig
|
|
+++ CMakeLists.txt
|
|
@@ -23,33 +23,9 @@ option(PORTABLE "Create a portable build (-rpath=$ORIG
|
|
option(DOWNLOAD_TITLE_SEQUENCES "Download title sequences during installation." ON)
|
|
|
|
# Define current git branch
|
|
-execute_process(
|
|
- COMMAND git rev-parse --abbrev-ref HEAD
|
|
- WORKING_DIRECTORY ${ROOT_DIR}
|
|
- OUTPUT_VARIABLE OPENRCT2_BRANCH
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
- ERROR_QUIET
|
|
-)
|
|
add_definitions(-DOPENRCT2_BRANCH="${OPENRCT2_BRANCH}")
|
|
|
|
-# Define commit hash
|
|
-execute_process(
|
|
- COMMAND git rev-parse HEAD
|
|
- WORKING_DIRECTORY ${ROOT_DIR}
|
|
- OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
- ERROR_QUIET
|
|
-)
|
|
-add_definitions(-DOPENRCT2_COMMIT_SHA1="${OPENRCT2_COMMIT_SHA1}")
|
|
-
|
|
# Define short commit hash
|
|
-execute_process(
|
|
- COMMAND git rev-parse --short HEAD
|
|
- WORKING_DIRECTORY ${ROOT_DIR}
|
|
- OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1_SHORT
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
- ERROR_QUIET
|
|
-)
|
|
|
|
# Tagged builds are not meant to display commit info
|
|
if (NOT OPENRCT2_COMMIT_SHA1_SHORT STREQUAL "HEAD")
|