cmake: refactor BRANCH_TYPE evaluation

Change-Id: Idc811e231dd993e9ff82c6080a7da69149b6da77
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk 2020-06-18 10:58:36 +02:00 committed by sys_ocldev
parent 68847ef942
commit 1d5156380e
2 changed files with 2 additions and 1 deletions

0
.branch Normal file
View File

View File

@ -49,7 +49,8 @@ set(GLOBAL PROPERTY NEO_OCL_COMPONENTS_LIST "")
define_property(GLOBAL PROPERTY NEO_L0_COMPONENTS_LIST BRIEF_DOCS "List of components" FULL_DOCS "List of components to create packages")
set(GLOBAL PROPERTY NEO_L0_COMPONENTS_LIST "")
set(BRANCH_TYPE "")
file(READ ".branch" BRANCH_TYPE)
string(STRIP "${BRANCH_TYPE}" BRANCH_TYPE)
set(BRANCH_DIR_SUFFIX "/${BRANCH_TYPE}")
list(APPEND BRANCH_DIR_LIST "/")
if(NOT "${BRANCH_TYPE}" STREQUAL "")