Skip to content

Commit 9e1c79e

Browse files
author
Diptorup Deb
committed
Fix version.
1 parent 4703146 commit 9e1c79e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function(_setup_sphinx)
138138
endfunction()
139139

140140
function(_set_current_release)
141-
set(CURRENT_RELEASE "")
141+
set(CURRENT_RELEASE "" PARENT_SCOPE)
142142
# Use git describe to get latest tag name
143143
if (GIT_FOUND)
144144
execute_process(
@@ -155,7 +155,7 @@ function(_set_current_release)
155155
OUTPUT_STRIP_TRAILING_WHITESPACE
156156
)
157157
if (NOT "${CURRENT_RELEASE}" STREQUAL "${CURRENT_COMMIT}")
158-
set(CURRENT_RELEASE "master")
158+
set(CURRENT_RELEASE "master" PARENT_SCOPE)
159159
endif ()
160160
endif (GIT_FOUND)
161161
endfunction()

0 commit comments

Comments
 (0)