cmake: refactor BRANCH_TYPE evaluation
Change-Id: Idc811e231dd993e9ff82c6080a7da69149b6da77 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
parent
68847ef942
commit
1d5156380e
|
@ -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")
|
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(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}")
|
set(BRANCH_DIR_SUFFIX "/${BRANCH_TYPE}")
|
||||||
list(APPEND BRANCH_DIR_LIST "/")
|
list(APPEND BRANCH_DIR_LIST "/")
|
||||||
if(NOT "${BRANCH_TYPE}" STREQUAL "")
|
if(NOT "${BRANCH_TYPE}" STREQUAL "")
|
||||||
|
|
Loading…
Reference in New Issue