ASM: ADSP Blackfin assembler identification
I need to set the output extension to '.doj' for the ADSP Blackfin assembler we use.
I tried to do this by adding:
```
set(CMAKE_ASM_OUTPUT_EXTENSION .doj)
```
in our tool-chain file. But that variable is always set to either '.o' or '.obj' in [CMakeASMInformation](Modules/CMakeASMInformation.cmake)
```
if(UNIX)
set(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
else()
set(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .obj)
endif()
```
The only work-around I have found so far is to create a new dialect (i.e. ASM-BF) and copy
the [CMakeASMInformation](Modules/CMakeASMInformation.cmake) where I only change the extension.
However, I think a nicer solution would be if [CMakeASMInformation](Modules/CMakeASMInformation.cmake) did not overwrite the extension variable, something like:
```
# Set default output extension if not given
if(NOT CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION)
if(UNIX)
set(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
else()
set(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .obj)
endif()
endif()
```
But it could also be that I'm missing something obvious here...
issue