message: cmake: use tinyxml2 from host on Linux
diff: @@ -110,8 +110,14 @@ if (IOS)
  include_directories(curl-android-ios/prebuilt-with-ssl/ios/include)
  endif()
  -if (IOS OR ANDROID OR MSVC)
  +if (IOS OR ANDROID OR MSVC OR APPLE)
  set(library_type "STATIC")
  +
  + # We need tinyxml2 for the camera definition parsing.
  + # We use the submodule when linking statically.
  + add_subdirectory(libs/tinyxml2 EXCLUDE_FROM_ALL)
  + include_directories(SYSTEM libs/tinyxml2)
  +
  else()
  set(library_type "SHARED")
  endif()
  @@ -154,9 +160,9 @@ set_target_properties(dronecore
  PROPERTIES COMPILE_FLAGS ${warnings}
  )
  -# We need tinyxml2 for the camera definition parsing.
  -add_subdirectory(libs/tinyxml2 EXCLUDE_FROM_ALL)
  -include_directories(SYSTEM libs/tinyxml2)
  +# Use tinyxml2 from the host system for Linux.
  +if(NOT IOS AND NOT ANDROID AND NOT MSVC AND NOT APPLE)
  +endif()
  # We support install in order to use the header and library files in
  # other applications.
  