Parcourir la source

Merge pull request #99 from zb353027/master

Fix android link error
ithewei il y a 4 ans
Parent
commit
270f8c2240
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      CMakeLists.txt

+ 4 - 4
CMakeLists.txt

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