cmake -E copy_directory: the content in dSYM is changed
I am using CMake 3.20.1. In CMakeList.txt, it is:
add_custom_command(TARGET ${target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "$<TARGET_FILE:${target}>.dSYM"
"${j_default_sym_path}/$<TARGET_FILE_NAME:${target}>.dSYM")
After copy the dSYM file, the size of the original dSYM is around 9.5M, while the size of the copied dSYM is around 0, sometimes it is around 600k, in which the related dylib is 0.
Is it a bug in CMake 3.20.1? Do you know how to resolve this issue?
Thanks.
Edited by Brad King