summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Android/check_binary.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Android/check_binary.cmake')
-rw-r--r--Tests/RunCMake/Android/check_binary.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/Android/check_binary.cmake b/Tests/RunCMake/Android/check_binary.cmake
new file mode 100644
index 000000000..1d1b01a5d
--- /dev/null
+++ b/Tests/RunCMake/Android/check_binary.cmake
@@ -0,0 +1,8 @@
+if(NOT EXISTS "${file}")
+ message(FATAL_ERROR "Missing file:\n ${file}")
+endif()
+execute_process(COMMAND "${objdump}" -p ${file} OUTPUT_VARIABLE out)
+if(out MATCHES "NEEDED[^\n]*stdc\\+\\+")
+ string(REPLACE "\n" "\n " out " ${out}")
+ message(FATAL_ERROR "File:\n ${file}\ndepends on libstdc++:\n${out}")
+endif()