--- CMakeLists.txt.orig 2020-04-25 22:05:56 UTC +++ CMakeLists.txt @@ -437,7 +437,11 @@ set(NEEDED_HEADERS xlocale.h) if(ENABLE_NLS) - list(APPEND NEEDED_HEADERS libintl.h) + list(APPEND NEEDED_HEADERS libintl.h) + find_package(Intl) + if(Intl_FOUND) + set(LIBINTL_LIBRARY ${Intl_LIBRARIES}) + endif() endif() foreach(H ${NEEDED_HEADERS}) @@ -552,10 +556,6 @@ foreach(P daemon cli utils gtk qt mac) add_subdirectory(${P}) endif() endforeach() - -if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT) - tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME}) -endif() if(INSTALL_DOC) install(FILES AUTHORS COPYING NEWS README.md extras/rpc-spec.txt extras/send-email-when-torrent-done.sh DESTINATION ${CMAKE_INSTALL_DOCDIR})