|
@@ -23,7 +23,7 @@ add_definitions( -DOPENDDL_NO_USE_CPP11 )
|
|
# Get the current working branch
|
|
# Get the current working branch
|
|
execute_process(
|
|
execute_process(
|
|
COMMAND git rev-parse --abbrev-ref HEAD
|
|
COMMAND git rev-parse --abbrev-ref HEAD
|
|
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
|
|
|
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
OUTPUT_VARIABLE GIT_BRANCH
|
|
OUTPUT_VARIABLE GIT_BRANCH
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
)
|
|
)
|
|
@@ -31,7 +31,7 @@ execute_process(
|
|
# Get the latest abbreviated commit hash of the working branch
|
|
# Get the latest abbreviated commit hash of the working branch
|
|
execute_process(
|
|
execute_process(
|
|
COMMAND git log -1 --format=%h
|
|
COMMAND git log -1 --format=%h
|
|
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
|
|
|
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
|
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
)
|
|
)
|