cmake: remote_library: Fix non-functional force-patch argument
Fix the force-patch argument to fetch_remote_library.
This was incorrectly checking if the argument was provided.
Fix it to evaluate the value of the argument.
Change-Id: I19e29372f30ffbd5eceae4590f298e9aa5a9916f
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
diff --git a/cmake/remote_library.cmake b/cmake/remote_library.cmake
index d1097c6..e2f762a 100644
--- a/cmake/remote_library.cmake
+++ b/cmake/remote_library.cmake
@@ -279,7 +279,11 @@
endif()
endif()
- if (ARG_LIB_PATCH_DIR AND (SOURCE_PATH_IS_DOWNLOAD OR ARG_LIB_FORCE_PATCH))
+ if (ARG_LIB_FORCE_PATCH)
+ set(FORCE_PATCH ${${ARG_LIB_FORCE_PATCH}})
+ endif()
+
+ if (ARG_LIB_PATCH_DIR AND (SOURCE_PATH_IS_DOWNLOAD OR FORCE_PATCH))
# look for patch files
file(GLOB PATCH_FILES "${ARG_LIB_PATCH_DIR}/*.patch")