From 3e595d02a1c097a3ab683920c3242d9fcbeafc09 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 17 Dec 2021 18:47:23 +0000 Subject: [PATCH] Fix asset bundling on Apple systems The `target_sources` command was changed in the test overhaul PR but that was incorrect. --- CMake/Assets.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/Assets.cmake b/CMake/Assets.cmake index 68d4d4dc0..1969906d9 100644 --- a/CMake/Assets.cmake +++ b/CMake/Assets.cmake @@ -30,7 +30,7 @@ if (Gettext_FOUND) MACOSX_PACKAGE_LOCATION Resources XCODE_EXPLICIT_FILE_TYPE compiled) add_dependencies(libdevilutionx "${_lang_target}") - target_sources(libdevilutionx PRIVATE "${_gmo_file}") + target_sources(${BIN_TARGET} PRIVATE "${_gmo_file}") endif() if(VITA) @@ -160,7 +160,7 @@ if(APPLE) set_source_files_properties("${src}" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/${_asset_dir}" XCODE_EXPLICIT_FILE_TYPE compiled) - target_sources(libdevilutionx PRIVATE "${src}") + target_sources(${BIN_TARGET} PRIVATE "${src}") endforeach() else() # Copy assets to the build assets subdirectory. This serves two purposes: