diff options
Diffstat (limited to 'share/cmake-3.5/Modules/Platform/Android.cmake')
-rwxr-xr-x | share/cmake-3.5/Modules/Platform/Android.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/share/cmake-3.5/Modules/Platform/Android.cmake b/share/cmake-3.5/Modules/Platform/Android.cmake new file mode 100755 index 0000000..1bdad04 --- /dev/null +++ b/share/cmake-3.5/Modules/Platform/Android.cmake @@ -0,0 +1,15 @@ +include(Platform/Linux) + +# Android has soname, but binary names must end in ".so" so we cannot append +# a version number. Also we cannot portably represent symlinks on the host. +set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1) + +# Android reportedly ignores RPATH, and we cannot predict the install +# location anyway. +set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") + +# Nsight Tegra Visual Studio Edition takes care of +# prefixing library names with '-l'. +if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android") + set(CMAKE_LINK_LIBRARY_FLAG "") +endif() |