Open leleliu008 opened 2 years ago
I suggest CMakeLists.txt#L141
target_link_libraries(basisu m pthread)
change to following:
target_link_libraries(basisu m) if (UNIX) find_library(LIBPTHREAD pthread) if (LIBPTHREAD) target_link_libraries(basisu pthread) endif() endif()
Android has no separated libpthread, it is included in libc
Android
Reference: https://developer.android.com/ndk/guides/stable_apis#c_library https://cmake.org/cmake/help/latest/variable/UNIX.html
I suggest CMakeLists.txt#L141
change to following:
Android
has no separated libpthread, it is included in libcReference: https://developer.android.com/ndk/guides/stable_apis#c_library https://cmake.org/cmake/help/latest/variable/UNIX.html