From 0c8ea7f83674e37f48cdad09a8e2749a9c7312d3 Mon Sep 17 00:00:00 2001 From: Ken T Takusagawa Date: Wed, 18 Apr 2018 16:48:21 -0400 Subject: [PATCH] Run the script without relying on its executable bit being set. Addresses https://github.com/TerrorJack/direct-rocksdb/issues/2 . Workaround for https://github.com/haskell/tar/issues/25 . --- rocksdb-5.8/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocksdb-5.8/CMakeLists.txt b/rocksdb-5.8/CMakeLists.txt index b5a1c10..d4416bb 100644 --- a/rocksdb-5.8/CMakeLists.txt +++ b/rocksdb-5.8/CMakeLists.txt @@ -126,13 +126,13 @@ string(REGEX REPLACE "[^0-9a-f]+" "" GIT_SHA "${GIT_SHA}") if(NOT WIN32) execute_process(COMMAND - "./build_tools/version.sh" "full" + "sh" "build_tools/version.sh" "full" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE ROCKSDB_VERSION ) string(STRIP "${ROCKSDB_VERSION}" ROCKSDB_VERSION) execute_process(COMMAND - "./build_tools/version.sh" "major" + "sh" "build_tools/version.sh" "major" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE ROCKSDB_VERSION_MAJOR )