Fix:build:Workaround for android build with older NDKs
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 31 May 2012 21:17:36 +0000 (21:17 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 31 May 2012 21:17:36 +0000 (21:17 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5125 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/CMakeLists.txt

index deae6a1..ab67d0e 100755 (executable)
@@ -171,8 +171,10 @@ else()
 endif(NOT HAVE_LIBINTL)
 
 
-if (CMAKE_USE_PTHREADS_INIT)    
-   list(APPEND NAVIT_LIBS pthread)
+if (CMAKE_USE_PTHREADS_INIT)
+   if (NOT ANDROID)
+      list(APPEND NAVIT_LIBS pthread)
+   endif(NOT ANDROID)
 endif(CMAKE_USE_PTHREADS_INIT)
 if (Glib_FOUND)
    set(HAVE_GLIB 1)