Ver Fonte

Update libprotobuf.cmake

link log library on Android
RPG3D há 5 anos atrás
pai
commit
6aaa40f2a9
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      cmake/libprotobuf.cmake

+ 3 - 0
cmake/libprotobuf.cmake

@@ -121,6 +121,9 @@ endif()
 if(protobuf_LINK_LIBATOMIC)
   target_link_libraries(libprotobuf atomic)
 endif()
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
+	target_link_libraries(libprotobuf-lite log)
+endif()
 target_include_directories(libprotobuf PUBLIC ${protobuf_source_dir}/src)
 if(MSVC AND protobuf_BUILD_SHARED_LIBS)
   target_compile_definitions(libprotobuf