Skip to content

Commit bb20c19

Browse files
committed
Fix the usage of the binary data target names
1 parent 7b10915 commit bb20c19

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/plugin/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set (target_name example_plugin)
2424
set (target_version "1.0.0")
2525

2626
yup_add_embedded_binary_resources (
27-
BinaryData
27+
"${target_name}_binary_data"
2828
OUT_DIR BinaryData
2929
HEADER BinaryData.h
3030
NAMESPACE yup
@@ -36,6 +36,7 @@ yup_add_embedded_binary_resources (
3636

3737
yup_audio_plugin (
3838
TARGET_NAME ${target_name}
39+
TARGET_VERSION ${target_version}
3940
TARGET_IDE_GROUP "Examples"
4041
TARGET_APP_ID "org.yup.${target_name}"
4142
TARGET_APP_NAMESPACE "org.yup.${target_name}"
@@ -61,7 +62,7 @@ yup_audio_plugin (
6162
sheenbidi
6263
rive
6364
rive_renderer
64-
BinaryData
65+
"${target_name}_binary_data"
6566
)
6667

6768
# ==== Prepare sources

examples/render/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (ANDROID AND NOT YUP_TARGET_ANDROID_BUILD_GRADLE)
3737
_yup_add_default_modules ("${CMAKE_CURRENT_LIST_DIR}/../..")
3838

3939
yup_add_embedded_binary_resources (
40-
BinaryData
40+
"${target_name}_binary_data"
4141
OUT_DIR BinaryData
4242
HEADER BinaryData.h
4343
NAMESPACE yup
@@ -46,7 +46,7 @@ if (ANDROID AND NOT YUP_TARGET_ANDROID_BUILD_GRADLE)
4646
RESOURCES
4747
${CMAKE_CURRENT_LIST_DIR}/data/alien.riv
4848
)
49-
set (link_libraries BinaryData)
49+
set (link_libraries "${target_name}_binary_data")
5050
endif()
5151

5252
# ==== Prepare target

0 commit comments

Comments
 (0)