0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/x11-packages/openttd/cmake-FindICU.patch
Chongyun Lee 51ffe57c05 libicu: revbump revdeps (3)
packages: music-file-organizer, tectonic, libical, libraptor2
x11-packages: gw, openttd
2024-11-23 15:54:57 +08:00

17 lines
546 B
Diff

--- a/cmake/FindICU.cmake
+++ b/cmake/FindICU.cmake
@@ -42,12 +42,14 @@
# Check the libraries returned by pkg-config really exist.
unset(PC_LIBRARIES)
foreach(LIBRARY IN LISTS PC_ICU_${MOD_NAME}_LIBRARIES)
+ if (NOT ${LIBRARY} MATCHES "m")
unset(PC_LIBRARY CACHE)
find_library(PC_LIBRARY NAMES ${LIBRARY})
if(NOT PC_LIBRARY)
unset(PC_ICU_${MOD_NAME}_FOUND)
endif()
list(APPEND PC_LIBRARIES ${PC_LIBRARY})
+ endif()
endforeach()
unset(PC_LIBRARY CACHE)