CMake: Fix duplicate SPIRV-Cross library on MacOS

This commit is contained in:
Stenzek 2024-08-05 00:05:03 +10:00
parent c23ea4b2ad
commit 6e795c8977
No known key found for this signature in database

View file

@ -289,7 +289,7 @@ function(add_util_resources target)
endif()
# Copy shaderc into the bundle
get_target_property(SPIRV_CROSS_LIBRARY spirv-cross-c-shared IMPORTED_LOCATION_RELEASE)
get_target_property(SPIRV_CROSS_LIBRARY spirv-cross-c-shared IMPORTED_SONAME_RELEASE)
target_sources(duckstation-qt PRIVATE "${SHADERC_LIBRARY}" "${SPIRV_CROSS_LIBRARY}")
set_source_files_properties("${SHADERC_LIBRARY}" "${SPIRV_CROSS_LIBRARY}" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)
endif()