diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index 51f4d4303..c0f09c07b 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -603,9 +603,11 @@ if(ANDROID) # rename output library set_target_properties(renderdoc PROPERTIES OUTPUT_NAME "VkLayer_GLES_RenderDoc") - if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND CMAKE_BUILD_TYPE STREQUAL "Release") + if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND RELEASE_MODE) + message(STATUS "renderdoc library will be stripped") add_custom_command(TARGET renderdoc POST_BUILD COMMAND echo Stripping $ + COMMAND ${CMAKE_COMMAND} -E copy $ $.dbg COMMAND ${CMAKE_STRIP} --strip-unneeded $) endif() endif() diff --git a/renderdoccmd/CMakeLists.txt b/renderdoccmd/CMakeLists.txt index 23d71f3ac..da7563e7b 100644 --- a/renderdoccmd/CMakeLists.txt +++ b/renderdoccmd/CMakeLists.txt @@ -75,9 +75,11 @@ if(ANDROID) endif() message(STATUS "Using Java of version ${Java_VERSION}") - if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND CMAKE_BUILD_TYPE STREQUAL "Release") + if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND RELEASE_MODE) + message(STATUS "renderdoccmd library will be stripped") add_custom_command(TARGET renderdoccmd POST_BUILD COMMAND echo Stripping $ + COMMAND ${CMAKE_COMMAND} -E copy $ $.dbg COMMAND ${CMAKE_STRIP} --strip-unneeded $) endif()