Skip to content

Commit 9e3b4bf

Browse files
committed
VC MDD: add CMAKE_GDBSERVER variable
[skip ci]
1 parent dd7fdd6 commit 9e3b4bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

os/vc-mdd-android.cmake

+11
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ set(
152152
"Path to ant"
153153
)
154154

155+
set(
156+
CMAKE_GDBSERVER
157+
"${ANDROID_NDK}/prebuilt/android-${ANDROID_ARCH_NAME}/gdbserver/gdbserver"
158+
CACHE
159+
INTERNAL
160+
"Path to 'gdbserver'"
161+
)
162+
if(NOT EXISTS "${CMAKE_GDBSERVER}")
163+
polly_fatal_error("File not found: ${CMAKE_GDBSERVER}")
164+
endif()
165+
155166
set(ANDROID_API_LEVEL "${ANDROID_NATIVE_API_LEVEL}")
156167

157168
# only search for libraries and includes in the ndk toolchain

0 commit comments

Comments
 (0)