mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
upm: add protection around function for packaging
* Would not build if not building IPK. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@ -41,5 +41,7 @@ endif ()
|
||||
install (TARGETS ${libname} DESTINATION lib/upm COMPONENT ${libname})
|
||||
install (FILES hmc5883l.h DESTINATION include/upm COMPONENT ${libname})
|
||||
|
||||
cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
|
||||
set(CPACK_COMPONENT_${libname}_DESCRIPTION "libupm Digital Compass")
|
||||
if (IPK)
|
||||
cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
|
||||
set(CPACK_COMPONENT_${libname}_DESCRIPTION "libupm Digital Compass")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user