From 5b65066bf8f81f299cadbbe38e675fb6189505e8 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 27 Jun 2023 22:05:22 +0000 Subject: [PATCH] build: on mac install trans into debug builds too Change the cmake code to install the translations gettext .mo files into the .app bundle for non-release builds too. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 23a979a7..a9f7f63a 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1245,13 +1245,13 @@ if(NOT TRANSLATIONS_ONLY) COMMAND ${CMAKE_SOURCE_DIR}/tools/macOS/third_party_libs_tool ./visualboyadvance-m.app WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" ) - - add_custom_command( - TARGET visualboyadvance-m POST_BUILD - COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/mac-translations.cmake - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - ) endif() + + add_custom_command( + TARGET visualboyadvance-m POST_BUILD + COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/mac-translations.cmake + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + ) endif() if(APPLE AND (UPSTREAM_RELEASE OR ENABLE_ONLINEUPDATES))