cmake: allow to disable package target
set cmake option: -DNEO_BUILD_PACKAGE=FALSE to disable CPack usage which will remove target package. Option is set to TRUE if not specified externally. Change-Id: I6bcc81c8a0f85dbbd82ddaf66f4d4bc628ca04da Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
parent
edf5a6ec3e
commit
ee46ac1ab8
|
@ -36,6 +36,9 @@ include(GNUInstallDirs)
|
||||||
# define global property where we will collect component list to package
|
# define global property where we will collect component list to package
|
||||||
define_property(GLOBAL PROPERTY NEO_COMPONENTS_LIST BRIEF_DOCS "List of components" FULL_DOCS "List of components to create packages")
|
define_property(GLOBAL PROPERTY NEO_COMPONENTS_LIST BRIEF_DOCS "List of components" FULL_DOCS "List of components to create packages")
|
||||||
set(GLOBAL PROPERTY NEO_COMPONENTS_LIST "")
|
set(GLOBAL PROPERTY NEO_COMPONENTS_LIST "")
|
||||||
|
if(NOT DEFINED NEO_BUILD_PACKAGE)
|
||||||
|
set(NEO_BUILD_PACKAGE TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(BRANCH_TYPE "")
|
set(BRANCH_TYPE "")
|
||||||
set(BRANCH_DIR_SUFFIX "/${BRANCH_TYPE}")
|
set(BRANCH_DIR_SUFFIX "/${BRANCH_TYPE}")
|
||||||
|
@ -822,4 +825,6 @@ configure_file(lib_names.h.in ${IGDRCL_BUILD_DIR}/lib_names.h)
|
||||||
hide_subdir(runtime)
|
hide_subdir(runtime)
|
||||||
add_subdirectories()
|
add_subdirectories()
|
||||||
|
|
||||||
include(package.cmake)
|
if(NEO_BUILD_PACKAGE)
|
||||||
|
include(package.cmake)
|
||||||
|
endif()
|
||||||
|
|
|
@ -17,7 +17,7 @@ components:
|
||||||
branch: infra
|
branch: infra
|
||||||
clean_on_sync: true
|
clean_on_sync: true
|
||||||
dest_dir: infra
|
dest_dir: infra
|
||||||
revision: 54d2503b502069fff76697aaf210a88670d3b53b
|
revision: 4a59c587b7d293cb991981cf9aed654f9b0b15dd
|
||||||
type: git
|
type: git
|
||||||
internal:
|
internal:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
Loading…
Reference in New Issue