dont use PROJECT_NAME here

no, i did not name my library the same as the project. stop assuming that!
This commit is contained in:
mat 2024-01-27 22:39:54 -03:00 committed by GitHub
parent 578e0d37d5
commit e5db59535d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,10 +54,10 @@ function(setup_geode_mod proname)
if (ANDROID)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(
TARGET "${PROJECT_NAME}" POST_BUILD
DEPENDS "${PROJECT_NAME}"
TARGET "${proname}" POST_BUILD
DEPENDS "${proname}"
COMMAND $<$<CONFIG:release>:${CMAKE_STRIP}>
ARGS -S $<TARGET_FILE:${PROJECT_NAME}>
ARGS -S $<TARGET_FILE:${proname}>
)
endif()
endif()