From: Hwankyu Jhun Date: Thu, 20 Feb 2025 10:06:38 +0000 (+0900) Subject: Fix build error issue for cmake 3.31 version upgrade X-Git-Tag: accepted/tizen/unified/20250221.111509~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaade1c20ec84bd564f67921cf1acdfd7c9d4800;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Fix build error issue for cmake 3.31 version upgrade Change-Id: Ie66a58304697c9b88e9c0f3cb6adfe8437cfaa76 Signed-off-by: Hwankyu Jhun --- diff --git a/src/res-copy/CMakeLists.txt b/src/res-copy/CMakeLists.txt index a1e05d8..c1d5652 100644 --- a/src/res-copy/CMakeLists.txt +++ b/src/res-copy/CMakeLists.txt @@ -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)