It results in the following error when running cmake for the Android build:
CMake Error at G:/game_engines/axmol/extensions/CMakeLists.txt:14 (target_link_libraries):
The keyword signature for target_link_libraries has already been used with
the target "Live2D". All uses of target_link_libraries with a target must
be either all-keyword or all-plain.
Is the "INTERFACE" scope required for Android in this line?
target_link_libraries(${LIB_NAME} INTERFACE Live2DCubismCore)
If it is required, then a suggested fix:
Adjust setup_ax_extension_config to allow for optional link scope argument, for example:
Live2d has the following in
Live2D/CMakeLists.txt
:Then when it calls
setup_ax_extension_config(${LIB_NAME})
, it links with Axmol:It results in the following error when running cmake for the Android build:
Is the "INTERFACE" scope required for Android in this line?
target_link_libraries(${LIB_NAME} INTERFACE Live2DCubismCore)
If it is required, then a suggested fix:
Adjust
setup_ax_extension_config
to allow for optional link scope argument, for example:Which would be called like this:
setup_ax_extension_config(${LIB_NAME} LINK_SCOPE PRIVATE)
The above modification to
setup_ax_extension_config
has been tested, and it works, without affecting any other extensions.