Make utils.h and compiler.h public headers
The mentioned two headers are used from a lot of components and
most library deployments depend on them. Make these public and be
part of the installed content.
Further fine-tuning might be needed as this change will make all
targets using the component installing the files even if not
actually needed.
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Change-Id: I8e69f8eb20552d2bb53a740a8f478756fdce803e
diff --git a/components/common/utils/component.cmake b/components/common/utils/component.cmake
index 363a464..d0765ce 100644
--- a/components/common/utils/component.cmake
+++ b/components/common/utils/component.cmake
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -11,5 +11,11 @@
target_include_directories(${TGT}
PUBLIC
- "${CMAKE_CURRENT_LIST_DIR}/include"
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
+ "$<INSTALL_INTERFACE:${TS_ENV}/include>"
)
+
+set_property(TARGET ${TGT} APPEND PROPERTY PUBLIC_HEADER
+ "${CMAKE_CURRENT_LIST_DIR}/include/util.h"
+ "${CMAKE_CURRENT_LIST_DIR}/include/compiler.h"
+ )
\ No newline at end of file