Skip to content

Commit 75c97ac

Browse files
committed
build: UnifySDK: Apply patches for zpc #77
For now public UnifySDK is patched, on longer term if needed a new repository for libunify could replace monorepo UnifySDK (The patch part should be then removed). Origin: #47 Relate-to: SiliconLabsSoftware/z-wave-engine-application-layer#6 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 10735aa commit 75c97ac

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmake/modules/FindUnifySDK.cmake

+7-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if("${UNIFYSDK_GIT_TAG}" STREQUAL "")
2929
set(UNIFYSDK_GIT_TAG "main") # Override CMake default ("master")
3030
endif()
3131

32+
file(GLOB UNIFYSDK_PATCHES
33+
LIST_DIRECTORIES false
34+
${PROJECT_SOURCE_DIR}/patches/UnifySDK/*.patch
35+
)
36+
3237
find_package(Git)
3338
FetchContent_Declare(
3439
UnifySDK
@@ -41,9 +46,8 @@ FetchContent_Declare(
4146
GIT_CONFIG user.email=nobody@UnifySDK.localhost
4247

4348
PATCH_COMMAND ${GIT_EXECUTABLE}
44-
-C <SOURCE_DIR>
45-
am
46-
${PROJECT_SOURCE_DIR}/patches/UnifySDK/0001-UIC-3202-Relax-compiler-warnings-to-support-more-com.patch
49+
-C <SOURCE_DIR> am --ignore-whitespace
50+
"${UNIFYSDK_PATCHES}"
4751
)
4852

4953
message(STATUS "${CMAKE_PROJECT_NAME}: Depends: ${UNIFYSDK_GIT_REPOSITORY}#${UNIFYSDK_GIT_TAG}")

0 commit comments

Comments
 (0)