Prechádzať zdrojové kódy

Merge pull request #99 from zb353027/master

Fix android link error
ithewei 4 rokov pred
rodič
commit
270f8c2240
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      CMakeLists.txt

+ 4 - 4
CMakeLists.txt

@@ -127,16 +127,16 @@ if(WIN32)
     endif()
     endif()
 endif()
 endif()
 
 
-if(UNIX)
+
+if(ANDROID)
+    set(LIBS ${LIBS} log)
+elseif(UNIX)
     set(LIBS ${LIBS} pthread m dl)
     set(LIBS ${LIBS} pthread m dl)
     if(CMAKE_COMPILER_IS_GNUCC)
     if(CMAKE_COMPILER_IS_GNUCC)
         set(LIBS ${LIBS} rt)
         set(LIBS ${LIBS} rt)
     endif()
     endif()
 endif()
 endif()
 
 
-if(ANDROID)
-    set(LIBS ${LIBS} log)
-endif()
 
 
 if(APPLE)
 if(APPLE)
     set(LIBS ${LIBS} "-framework CoreFoundation" "-framework Security")
     set(LIBS ${LIBS} "-framework CoreFoundation" "-framework Security")