Skip to content

Commit ce265b9

Browse files
committed
fix: Corrected CMakeLists.txt
1 parent b8df6b8 commit ce265b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ else()
8181
endif()
8282
endif()
8383

84-
if(${GIT_BRANCH} MATCHES dev OR ${GIT_BRANCH} MATCHES "release/")
84+
if(DEFINED GIT_BRANCH AND "${GIT_BRANCH}" MATCHES "^(dev|release/.*)$")
8585
set(PROJECT_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}-dev)
8686
endif()
8787

0 commit comments

Comments
 (0)