diff options
author | Brad King <brad.king@kitware.com> | 2014-09-19 14:11:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-30 12:45:35 (GMT) |
commit | 178f56a57996651a4f8c2a20271f1e2c999279d2 (patch) | |
tree | 7d9d4de810d535ace5484abf364bdf3019481313 /Modules/Platform/Android.cmake | |
parent | 7115702f1b116fcf9b82ab197bab7426db10c610 (diff) | |
download | CMake-178f56a57996651a4f8c2a20271f1e2c999279d2.zip CMake-178f56a57996651a4f8c2a20271f1e2c999279d2.tar.gz CMake-178f56a57996651a4f8c2a20271f1e2c999279d2.tar.bz2 |
VS: Fix Tegra-Android platform linking of libraries by name
Nsight Tegra Visual Studio Edition handles prefixing of library names
with '-l' automatically, so teach the generator not to do so.
Reported-by: Mourad Boufarguine <mourad@boufarguine.name>
Diffstat (limited to 'Modules/Platform/Android.cmake')
-rw-r--r-- | Modules/Platform/Android.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Android.cmake b/Modules/Platform/Android.cmake index e6d4fcf..1bdad04 100644 --- a/Modules/Platform/Android.cmake +++ b/Modules/Platform/Android.cmake @@ -7,3 +7,9 @@ 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() |