From 482d6d233389e2acc46a0098d75ba820c0ec70b2 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 1 Jun 2023 11:17:01 +0200 Subject: [PATCH] tilp/gfm: fix build without NLS --- gfm/trunk/CMakeLists.txt | 6 ++++-- tilp/trunk/CMakeLists.txt | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gfm/trunk/CMakeLists.txt b/gfm/trunk/CMakeLists.txt index 48bd0a98..310897aa 100644 --- a/gfm/trunk/CMakeLists.txt +++ b/gfm/trunk/CMakeLists.txt @@ -44,8 +44,10 @@ target_link_libraries(gfm ${DEPS_LIBRARIES} ${GTK2_LIBRARIES} ${Iconv_LIBRARIES} set_target_properties(gfm PROPERTIES LINK_FLAGS "${DEPS_LDFLAGS} -rdynamic") # rdynamic is needed for the GUI callback functions # Takes care of the i18n po/pot/gmo/mo files -i18n_mo_from_po_pot() -add_dependencies(gfm potfiles_1) +if(ENABLE_NLS) + i18n_mo_from_po_pot() + add_dependencies(gfm potfiles_1) +endif() # .app bundle for macOS - disabled for now, we'll have to check how to make packaging better (see CPack?) #set_target_properties(gfm PROPERTIES MACOSX_BUNDLE TRUE) diff --git a/tilp/trunk/CMakeLists.txt b/tilp/trunk/CMakeLists.txt index 053b8e0d..165b23e2 100644 --- a/tilp/trunk/CMakeLists.txt +++ b/tilp/trunk/CMakeLists.txt @@ -71,8 +71,10 @@ target_link_libraries(tilp2 ${DEPS_LIBRARIES} ${GTK2_LIBRARIES} ${Iconv_LIBRARIE set_target_properties(tilp2 PROPERTIES LINK_FLAGS "${DEPS_LDFLAGS} -rdynamic") # rdynamic is needed for the GUI callback functions # Takes care of the i18n po/pot/gmo/mo files -i18n_mo_from_po_pot() -add_dependencies(tilp2 potfiles_2) +if(ENABLE_NLS) + i18n_mo_from_po_pot() + add_dependencies(tilp2 potfiles_2) +endif() # .app bundle for macOS - disabled for now, we'll have to check how to make packaging better (see CPack?) #set_target_properties(tilp2 PROPERTIES MACOSX_BUNDLE TRUE)