Skip to content

Commit 1d51563

Browse files
cmake: refactor BRANCH_TYPE evaluation
Change-Id: Idc811e231dd993e9ff82c6080a7da69149b6da77 Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent 68847ef commit 1d51563

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.branch

Whitespace-only changes.

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ set(GLOBAL PROPERTY NEO_OCL_COMPONENTS_LIST "")
4949
define_property(GLOBAL PROPERTY NEO_L0_COMPONENTS_LIST BRIEF_DOCS "List of components" FULL_DOCS "List of components to create packages")
5050
set(GLOBAL PROPERTY NEO_L0_COMPONENTS_LIST "")
5151

52-
set(BRANCH_TYPE "")
52+
file(READ ".branch" BRANCH_TYPE)
53+
string(STRIP "${BRANCH_TYPE}" BRANCH_TYPE)
5354
set(BRANCH_DIR_SUFFIX "/${BRANCH_TYPE}")
5455
list(APPEND BRANCH_DIR_LIST "/")
5556
if(NOT "${BRANCH_TYPE}" STREQUAL "")

0 commit comments

Comments
 (0)