Fix build error issue for cmake 3.31 version upgrade 73/319973/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 20 Feb 2025 10:06:38 +0000 (19:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 20 Feb 2025 10:06:38 +0000 (19:06 +0900)
Change-Id: Ie66a58304697c9b88e9c0f3cb6adfe8437cfaa76
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/res-copy/CMakeLists.txt

index a1e05d8756409cf43df6427eeee0406e1913f206..c1d5652daf3bfd309de9039d40de08f5b22e6821 100644 (file)
@@ -1,10 +1,14 @@
 # Target - sources
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src SRCS)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
 
 # Target - definition
 ADD_EXECUTABLE(${TARGET_RES_COPY} ${SRCS})
 
+TARGET_INCLUDE_DIRECTORIES(${TARGET_RES_COPY} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/include
+  ${CMAKE_CURRENT_SOURCE_DIR}/
+)
+
 # Dependency
 APPLY_PKG_CONFIG(${TARGET_RES_COPY} PUBLIC
   AUL_DEPS
@@ -17,4 +21,4 @@ APPLY_PKG_CONFIG(${TARGET_RES_COPY} PUBLIC
 )
 
 # Install
-INSTALL(TARGETS ${TARGET_RES_COPY} DESTINATION bin)
\ No newline at end of file
+INSTALL(TARGETS ${TARGET_RES_COPY} DESTINATION bin)