Object Libraries: PREFIX, OUTPUT_NAME, SUFFIX are not working

I am trying to build custom crt0.o using CMake and produce a file named crt0.o. To achieve this, I have created an object library target and overwritten PREFIX, OUTPUT_NAME, and SUFFIX target properties:

add_library(crt0 OBJECT src/crt0.S)
set_target_properties(crt0
  PROPERTIES
    PREFIX ""
    OUTPUT_NAME "crt0"
    SUFFIX ".o")

However CMake emits a file named crt0.S.o instead of the desired crt0.o.

So, the questions are:

  1. How can I properly set the output name for an object library?
  2. If (1) is not possible, is there a way to ask CMake to rename the output file using the file command and remember (for further operations like linking) that the renaming operation has been done?

Thanks in advance

P.S. I had to remove some links to the documentation due to the forum policy limiting new users to 2 links per post.