mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
cmake: Remove unnecessary BITCOIN_GENBUILD_NO_GIT
environment variable
This functionality is now covered by the `CMAKE_DISABLE_FIND_PACKAGE_Git` variable. Note for reviewers: consider reviewing with `git diff -w`.
This commit is contained in:
parent
54dcbb91a5
commit
eb6d4c2d08
1 changed files with 52 additions and 54 deletions
|
@ -28,10 +28,9 @@ else()
|
||||||
set(WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
set(WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(GIT_TAG)
|
set(GIT_TAG "")
|
||||||
set(GIT_COMMIT)
|
set(GIT_COMMIT "")
|
||||||
if(NOT "$ENV{BITCOIN_GENBUILD_NO_GIT}" STREQUAL "1")
|
if(GIT_EXECUTABLE)
|
||||||
if(GIT_EXECUTABLE)
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${GIT_EXECUTABLE} rev-parse --is-inside-work-tree
|
COMMAND ${GIT_EXECUTABLE} rev-parse --is-inside-work-tree
|
||||||
WORKING_DIRECTORY ${WORKING_DIR}
|
WORKING_DIRECTORY ${WORKING_DIR}
|
||||||
|
@ -95,7 +94,6 @@ if(NOT "$ENV{BITCOIN_GENBUILD_NO_GIT}" STREQUAL "1")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(GIT_TAG)
|
if(GIT_TAG)
|
||||||
|
|
Loading…
Add table
Reference in a new issue