termux-packages/packages/libdispatch/src-CMakeLists.txt.patch

15 lines
494 B
Diff
Raw Normal View History

2019-09-06 16:58:54 +02:00
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2809c11..368d428 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -246,6 +246,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
"-Xlinker -alias_list -Xlinker ${PROJECT_SOURCE_DIR}/xcodeconfig/libdispatch.aliases")
endif()
dispatch_set_linker(dispatch)
2019-09-06 16:58:54 +02:00
+if(CMAKE_SYSTEM_NAME STREQUAL Android)
+ set_property(TARGET dispatch APPEND PROPERTY LINK_LIBRARIES "log")
+endif()
install(TARGETS
dispatch