18 |
|
|
19 |
|
# call git log to get output containing the tag |
20 |
|
execute_process( |
21 |
< |
COMMAND ${git} branch |
21 |
> |
COMMAND ${git} describe --tag --exact-match |
22 |
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
23 |
< |
OUTPUT_VARIABLE git_log_output) |
23 |
> |
OUTPUT_VARIABLE git_tag_output) |
24 |
|
|
25 |
|
# create & install the source version .txt file |
26 |
< |
file(WRITE "NREL_ver.txt" "Radiance built from source branch(*):\n ${git_log_output}") |
26 |
> |
file(WRITE "NREL_ver.txt" "Radiance version ${git_tag_output}") |
27 |
|
install(FILES NREL_ver.txt DESTINATION bin/..) |
28 |
|
endif() |
29 |
|
|