summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Android/ndk-search-order.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Android/ndk-search-order.cmake')
-rw-r--r--Tests/RunCMake/Android/ndk-search-order.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/Android/ndk-search-order.cmake b/Tests/RunCMake/Android/ndk-search-order.cmake
new file mode 100644
index 000000000..498d775c4
--- /dev/null
+++ b/Tests/RunCMake/Android/ndk-search-order.cmake
@@ -0,0 +1,17 @@
+if(NOT CMAKE_ANDROID_NDK_TOOLCHAIN_UNIFIED)
+ return()
+endif()
+
+find_library(LIBDL dl)
+if(NOT LIBDL)
+ message(FATAL_ERROR "libdl not found.")
+endif()
+
+if(LIBDL MATCHES ".a$")
+ message(FATAL_ERROR "found libdl.a")
+endif()
+
+find_program(CLANG clang)
+if(NOT CLANG)
+ message(FATAL_ERROR "clang not found")
+endif()